From 8b66ad4817d330f43fd1887569622675a4ecb64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Go=CC=88llner?= Date: Wed, 22 Mar 2023 15:41:57 +0100 Subject: [PATCH] Step clock animation: make animation cancellation instant Test: Manually Bug: 272730163 Change-Id: I663958733e384edf6085f1fb701c4bb2c326a9f0 --- .../com/android/systemui/shared/clocks/AnimatableClockView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/AnimatableClockView.kt b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/AnimatableClockView.kt index 86bd5f2bff5a7..9d1dd1b678018 100644 --- a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/AnimatableClockView.kt +++ b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/AnimatableClockView.kt @@ -648,7 +648,7 @@ class AnimatableClockView @JvmOverloads constructor( private const val DIGITS_PER_LINE = 2 // How much of "fraction" to spend on canceling the animation, if needed - private const val ANIMATION_CANCELLATION_TIME = 0.4f + private const val ANIMATION_CANCELLATION_TIME = 0f // Delays. Each digit's animation should have a slight delay, so we get a nice // "stepping" effect. When moving right, the second digit of the hour should move first.