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()
|
unreadIndicatorPropertyAnimator?.startAnimation()
|
||||||
} else {
|
} else {
|
||||||
|
unreadIndicatorView.alpha = 1
|
||||||
showOrHideView(unreadIndicatorView, cellData.read || cellData.starred)
|
showOrHideView(unreadIndicatorView, cellData.read || cellData.starred)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateStarView() {
|
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
|
starViewPropertyAnimator = UIViewPropertyAnimator(duration: 0.66, curve: .easeInOut) { [weak self] in
|
||||||
self?.starView.alpha = 0
|
self?.starView.alpha = 0
|
||||||
}
|
}
|
||||||
|
@ -245,6 +246,7 @@ private extension MasterTimelineTableViewCell {
|
||||||
}
|
}
|
||||||
starViewPropertyAnimator?.startAnimation()
|
starViewPropertyAnimator?.startAnimation()
|
||||||
} else {
|
} else {
|
||||||
|
starView.alpha = 1
|
||||||
showOrHideView(starView, !cellData.starred)
|
showOrHideView(starView, !cellData.starred)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue