diff options
| author | 2023-01-31 22:55:18 +0000 | |
|---|---|---|
| committer | 2023-01-31 22:56:29 +0000 | |
| commit | 7d80461067f71caa08fe0b4455840ba0a67ced32 (patch) | |
| tree | e29ea50915a76e69bc106320a65c076f35023a4b | |
| parent | 9e4022e4035514bc7687445af2082dc25eb2b965 (diff) | |
Initialize Colors when regionSampling is disabled
Fixes: 266726881
Test: Manually tested color of default clock
Change-Id: Id92356c955fa0c67764d4b5248ffb8cdab898f4b
| -rw-r--r-- | packages/SystemUI/src/com/android/keyguard/ClockEventController.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt b/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt index 7a094a76d048..7f95ca6972be 100644 --- a/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt +++ b/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt @@ -96,6 +96,8 @@ open class ClockEventController @Inject constructor( if (regionSamplingEnabled) { clock?.smallClock?.view?.addOnLayoutChangeListener(mLayoutChangedListener) clock?.largeClock?.view?.addOnLayoutChangeListener(mLayoutChangedListener) + } else { + updateColors() } updateFontSizes() updateTimeListeners() |