From 9c5799c46e5eda7abb8db682db1e5fe294f80e9d Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Fri, 26 Aug 2016 15:12:22 +0100 Subject: [PATCH] [statusbar] Use the right settings observer Not sure why there are two of them -- but if there are two of them then we should be using the one that responds to SHOW_NOTIFICATIONS events. Change-Id: Ibe0100bc767fbbad41494c6ddada07590942136c --- .../src/com/android/systemui/statusbar/BaseStatusBar.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index a6536a83183b4..75b9417467f70 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -309,6 +309,7 @@ public abstract class BaseStatusBar extends SystemUI implements mUsersAllowingPrivateNotifications.clear(); mUsersAllowingNotifications.clear(); // ... and refresh all the notifications + updateLockscreenNotificationSetting(); updateNotifications(); } }; @@ -714,7 +715,7 @@ public abstract class BaseStatusBar extends SystemUI implements mSettingsObserver); mContext.getContentResolver().registerContentObserver( Settings.Secure.getUriFor(Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS), false, - mSettingsObserver, + mLockscreenSettingsObserver, UserHandle.USER_ALL); if (ENABLE_LOCK_SCREEN_ALLOW_REMOTE_INPUT) { mContext.getContentResolver().registerContentObserver(