Merge "Send ACTION_POWER_SAVE_MODE_CHANGED to all user" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
035aaddbb3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user