diff options
author | 2025-03-06 18:34:40 +0000 | |
---|---|---|
committer | 2025-03-06 18:34:40 +0000 | |
commit | 53f6edf07874def9288692d907999b3f2c2766fd (patch) | |
tree | de7f09d1c776eb1c9e62f196f2f1379b90e64829 | |
parent | 4c10e9939546c2422a19b30adf7ca9b778ce55a9 (diff) |
Trigger clock relayout when transitioning to doze w/o animation
Bug: 400934553
Test: Manually validated clock behavior
Flag: com.android.systemui.shared.clock_reactive_variants
Change-Id: I3b1caf5e91e9a710c60ecb82fc99591f06ebb1c5
-rw-r--r-- | packages/SystemUI/customization/src/com/android/systemui/shared/clocks/view/SimpleDigitalClockTextView.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/view/SimpleDigitalClockTextView.kt b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/view/SimpleDigitalClockTextView.kt index 272882330eae..2af25fe339a2 100644 --- a/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/view/SimpleDigitalClockTextView.kt +++ b/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/view/SimpleDigitalClockTextView.kt @@ -337,6 +337,11 @@ open class SimpleDigitalClockTextView( ), ) updateTextBoundsForTextAnimator() + + if (!isAnimated) { + requestLayout() + (parent as? FlexClockView)?.requestLayout() + } } fun animateCharge() { |