Restore alpha of the indicators to 1 incase the animation completion handler doesn't get called. Fixes #3156
This commit is contained in:
parent
86ca397221
commit
c2413cda37
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue