am afd883f8: During early boot, send LOCALE_CHANGED only to registered receivers
* commit 'afd883f8a3ee260a5505f83d628c0b789871c837': During early boot, send LOCALE_CHANGED only to registered receivers
This commit is contained in:
@@ -16750,6 +16750,9 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
if ((changes&ActivityInfo.CONFIG_LOCALE) != 0) {
|
if ((changes&ActivityInfo.CONFIG_LOCALE) != 0) {
|
||||||
intent = new Intent(Intent.ACTION_LOCALE_CHANGED);
|
intent = new Intent(Intent.ACTION_LOCALE_CHANGED);
|
||||||
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
||||||
|
if (!mProcessesReady) {
|
||||||
|
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
|
||||||
|
}
|
||||||
broadcastIntentLocked(null, null, intent,
|
broadcastIntentLocked(null, null, intent,
|
||||||
null, null, 0, null, null, null, AppOpsManager.OP_NONE,
|
null, null, 0, null, null, null, AppOpsManager.OP_NONE,
|
||||||
false, false, MY_PID, Process.SYSTEM_UID, UserHandle.USER_ALL);
|
false, false, MY_PID, Process.SYSTEM_UID, UserHandle.USER_ALL);
|
||||||
|
|||||||
Reference in New Issue
Block a user