diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java index af1f795..a12a3f1 100644 --- a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +++ b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java @@ -376,7 +376,8 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { filter.addAction(ACTION_START_SAVER); filter.addAction(ACTION_STOP_SAVER); filter.addAction(ACTION_DISMISSED_WARNING); - mContext.registerReceiverAsUser(this, UserHandle.ALL, filter, null, mHandler); + mContext.registerReceiverAsUser(this, UserHandle.ALL, filter, + android.Manifest.permission.STATUS_BAR_SERVICE, mHandler); } @Override |