From 17876bf29191c995d5a33bd9e46938727a0c58ae Mon Sep 17 00:00:00 2001 From: Florence Yang Date: Wed, 26 Oct 2022 00:09:07 +0000 Subject: [PATCH] Call updateColors() explicitly when theme changes Currently, onColorPaletteChanged() in onThemeChanged() will call updateColor() from DefaultClockController.kt. We also want it to explicitly call updateColors() from ClockEventController.kt because it has theme-specific settings based on region sampling. This CL is derived from Change-Id: Id94d48c179732f2a13d96de1ad2589bb60051c43. Bug: 202758428 Test: manual Change-Id: I4db6e2ebca3eeed2dc76734c25fe2ecc144a0490 --- .../SystemUI/src/com/android/keyguard/ClockEventController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt b/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt index 910955a45f7b7..633e9c3fcd4e0 100644 --- a/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt +++ b/packages/SystemUI/src/com/android/keyguard/ClockEventController.kt @@ -156,6 +156,7 @@ open class ClockEventController @Inject constructor( private val configListener = object : ConfigurationController.ConfigurationListener { override fun onThemeChanged() { clock?.events?.onColorPaletteChanged(resources) + updateColors() } override fun onDensityOrFontScaleChanged() {