Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""

This reverts commit c48c31394e.

Change-Id: Ia2b59da5d953a8a692c0e2f5eabb12e952dbdea1
This commit is contained in:
Justin Harrison
2015-06-03 19:18:30 +00:00
parent c48c31394e
commit aa9a679b00

View File

@@ -16750,6 +16750,9 @@ public final class ActivityManagerService extends ActivityManagerNative
if ((changes&ActivityInfo.CONFIG_LOCALE) != 0) {
intent = new Intent(Intent.ACTION_LOCALE_CHANGED);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
if (!mProcessesReady) {
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
}
broadcastIntentLocked(null, null, intent,
null, null, 0, null, null, null, AppOpsManager.OP_NONE,
false, false, MY_PID, Process.SYSTEM_UID, UserHandle.USER_ALL);