Merge "Make ChipAnimatorAdapter check dot state when setting endstate" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-01 20:15:50 +00:00
committed by Android (Google) Code Review

View File

@@ -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?) {