[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
This commit is contained in:
Robin Lee
2016-08-26 15:12:22 +01:00
parent ebae3b55b7
commit 9c5799c46e

View File

@@ -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(