Merge "Send ACTION_POWER_SAVE_MODE_CHANGED to all user" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-21 16:44:44 +00:00
committed by Android (Google) Code Review

View File

@@ -991,7 +991,7 @@ public final class PowerManagerService extends SystemService
}
intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
mContext.sendBroadcast(intent);
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
// Send internal version that requires signature permission.
intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED_INTERNAL);
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);