From b8c43a1441e1b964b48009fdd4d9c7cda18e06d6 Mon Sep 17 00:00:00 2001 From: Sergey Serokurov Date: Mon, 4 Oct 2021 20:46:11 -0700 Subject: [PATCH] Fix theme change notification Change-Id: Ia7caf5c5c21fcdf6b175ca5cde2f114fc8dd01f7 Bug: 199250382 Test: Manual, verifed that the bubble views colors are correctly updated after theme has been changed. Test: Screen recording: https://drive.google.com/file/d/1Cbd-EinvVPTnDUGYzrtGq1Ym5NqTKNzB/view?usp=sharing --- .../KeyguardSecurityContainerController.java | 2 +- .../keyguard/KeyguardSliceViewController.java | 2 +- .../keyguard/LockIconViewController.java | 5 ---- .../systemui/AutoReinflateContainer.java | 2 +- .../biometrics/AuthRippleController.kt | 3 --- .../UdfpsKeyguardViewController.java | 5 ---- .../systemui/media/MediaCarouselController.kt | 2 +- .../NavigationModeController.java | 2 +- .../charging/WiredChargingRippleController.kt | 3 --- ...tificationStackScrollLayoutController.java | 14 ++++------- .../phone/ConfigurationControllerImpl.kt | 2 +- .../statusbar/phone/HeadsUpManagerPhone.java | 2 +- .../KeyguardStatusBarViewController.java | 7 +----- .../NotificationPanelViewController.java | 13 +--------- .../statusbar/phone/ScrimController.java | 5 ---- .../systemui/statusbar/phone/StatusBar.java | 25 +++++++------------ .../phone/StatusBarContentInsetsProvider.kt | 2 +- .../phone/StatusBarNotificationPresenter.java | 3 +-- .../StatusBarTouchableRegionManager.java | 2 +- .../phone/TapAgainViewController.java | 5 ---- .../policy/ConfigurationController.java | 1 - .../com/android/systemui/wmshell/WMShell.java | 2 +- 22 files changed, 27 insertions(+), 82 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 9d649e78c3634..d4d3d5b3ea2d0 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -209,7 +209,7 @@ public class KeyguardSecurityContainerController extends ViewController impleme updateColors(); } - @Override - public void onOverlayChanged() { - updateColors(); - } - @Override public void onConfigChanged(Configuration newConfig) { updateConfiguration(); diff --git a/packages/SystemUI/src/com/android/systemui/AutoReinflateContainer.java b/packages/SystemUI/src/com/android/systemui/AutoReinflateContainer.java index 5ed9eaad0a00b..12dd8f06de179 100644 --- a/packages/SystemUI/src/com/android/systemui/AutoReinflateContainer.java +++ b/packages/SystemUI/src/com/android/systemui/AutoReinflateContainer.java @@ -86,7 +86,7 @@ public class AutoReinflateContainer extends FrameLayout implements } @Override - public void onOverlayChanged() { + public void onThemeChanged() { inflateLayout(); } diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt b/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt index 0932a8ce757e5..8b04bf59658a6 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthRippleController.kt @@ -272,9 +272,6 @@ class AuthRippleController @Inject constructor( override fun onThemeChanged() { updateRippleColor() } - override fun onOverlayChanged() { - updateRippleColor() - } } private val udfpsControllerCallback = diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java index db93b26d99e58..7a28c9d522609 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java @@ -397,11 +397,6 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController { @VisibleForTesting final ConfigurationListener mConfigurationListener = new ConfigurationListener() { - @Override - public void onOverlayChanged() { - mView.updateColor(); - } - @Override public void onUiModeChanged() { mView.updateColor(); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/ConfigurationController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/ConfigurationController.java index e679c4c97f18d..6b80a9dab7cf5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/ConfigurationController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/ConfigurationController.java @@ -38,7 +38,6 @@ public interface ConfigurationController extends CallbackController