Step clock animation: make animation cancellation instant

Test: Manually
Bug: 272730163
Change-Id: I663958733e384edf6085f1fb701c4bb2c326a9f0
This commit is contained in:
Christian Göllner
2023-03-22 15:41:57 +01:00
committed by Christian Göllner
parent ee3afca596
commit 8b66ad4817

View File

@@ -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.