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

Commit 217f5abe authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Send ACTION_POWER_SAVE_MODE_CHANGING to secondary users too

Change-Id: I161506575390f8e28cdfbb2d684c18e10aab5aa5
Fix: 73963359
Test: manual test on a guest user on the BS setting screen.
parent b4edb988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -347,7 +347,7 @@ public class BatterySaverController implements BatterySaverPolicyListener {
            Intent intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING)
                    .putExtra(PowerManager.EXTRA_POWER_SAVE_MODE, enabled)
                    .addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
            mContext.sendBroadcast(intent);
            mContext.sendBroadcastAsUser(intent, UserHandle.ALL);

            intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED);
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);