diff --git a/packages/SystemUI/src/com/android/systemui/util/animation/PhysicsAnimator.kt b/packages/SystemUI/src/com/android/systemui/util/animation/PhysicsAnimator.kt index 8a1759d4d0cd6..0999c0ba02044 100644 --- a/packages/SystemUI/src/com/android/systemui/util/animation/PhysicsAnimator.kt +++ b/packages/SystemUI/src/com/android/systemui/util/animation/PhysicsAnimator.kt @@ -416,8 +416,10 @@ class PhysicsAnimator private constructor (val target: T) { max = max(currentValue, this.max) } - // Apply the configuration and start the animation. + // Apply the configuration and start the animation. Since flings can't be + // redirected while in motion, cancel it first. getFlingAnimation(animatedProperty) + .also { it.cancel() } .also { flingConfig.applyToAnimation(it) } .start() }