Merge "Make ChipAnimatorAdapter check dot state when setting endstate" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a0152a05a
@@ -315,7 +315,11 @@ class SystemStatusAnimationScheduler @Inject constructor(
|
||||
) : AnimatorListenerAdapter() {
|
||||
override fun onAnimationEnd(p0: Animator?) {
|
||||
chipAnimationController.onChipAnimationEnd(animationState)
|
||||
animationState = endState
|
||||
animationState = if (endState == SHOWING_PERSISTENT_DOT && !hasPersistentDot) {
|
||||
IDLE
|
||||
} else {
|
||||
endState
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAnimationStart(p0: Animator?) {
|
||||
|
||||
Reference in New Issue
Block a user