[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user