Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c5799c4 authored by Robin Lee's avatar Robin Lee
Browse files

[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
parent ebae3b55
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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(