During early boot, send LOCALE_CHANGED only to registered receivers
Bug 20855725 Bug 19060618 Change-Id: I368660ecc6ee97a0c2a2f627fa1b09288bc92bd1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user