mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Restore alpha of the indicators to 1 incase the animation completion handler doesn't get called. Fixes #3156
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user