From c2413cda37d56655a7cb9bf4b31bb9b2da811ba2 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 23 Jun 2021 03:24:23 -0500 Subject: [PATCH] Restore alpha of the indicators to 1 incase the animation completion handler doesn't get called. Fixes #3156 --- iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift b/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift index 49b9f9ae8..2ec879473 100644 --- a/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift +++ b/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift @@ -229,12 +229,13 @@ private extension MasterTimelineTableViewCell { } unreadIndicatorPropertyAnimator?.startAnimation() } else { + unreadIndicatorView.alpha = 1 showOrHideView(unreadIndicatorView, cellData.read || cellData.starred) } } func updateStarView() { - if !starView.isHidden && cellData.read && !cellData.starred { + if !starView.isHidden && cellData.read && !cellData.starred { starViewPropertyAnimator = UIViewPropertyAnimator(duration: 0.66, curve: .easeInOut) { [weak self] in self?.starView.alpha = 0 } @@ -245,6 +246,7 @@ private extension MasterTimelineTableViewCell { } starViewPropertyAnimator?.startAnimation() } else { + starView.alpha = 1 showOrHideView(starView, !cellData.starred) } }