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

Commit 05e07051 authored by John Spurlock's avatar John Spurlock
Browse files

Battery saver: limit notification intents to system UI.

Ensure the actions taken by the HUN warnings came from sysui.

Bug: 20918350
Change-Id: I8dc02ebdfcc1f60d068bea43e10e350dc566728d
parent e648c5f1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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