Loading libs/WindowManager/Shell/src/com/android/wm/shell/animation/PhysicsAnimator.kt +6 −2 Original line number Diff line number Diff line Loading @@ -829,9 +829,13 @@ class PhysicsAnimator<T> private constructor (target: T) { /** Cancels all in progress animations on all properties. */ fun cancel() { if (flingAnimations.size > 0) { cancelAction(flingAnimations.keys) } if (springAnimations.size > 0) { cancelAction(springAnimations.keys) } } /** Cancels in progress animations on the provided properties only. */ fun cancel(vararg properties: FloatPropertyCompat<in T>) { Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/animation/PhysicsAnimator.kt +6 −2 Original line number Diff line number Diff line Loading @@ -829,9 +829,13 @@ class PhysicsAnimator<T> private constructor (target: T) { /** Cancels all in progress animations on all properties. */ fun cancel() { if (flingAnimations.size > 0) { cancelAction(flingAnimations.keys) } if (springAnimations.size > 0) { cancelAction(springAnimations.keys) } } /** Cancels in progress animations on the provided properties only. */ fun cancel(vararg properties: FloatPropertyCompat<in T>) { Loading