Limit LOCALE_CHANGED broadcast when init'ing. am: d26e1ff2de

am: 8c54ee72b1

Change-Id: I790c21c47c7af00e76f7c816bbfe635d58d852d8
This commit is contained in:
Jeff Sharkey
2016-09-23 01:04:12 +00:00
committed by android-build-merger

View File

@@ -19045,7 +19045,7 @@ 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) {
if (initLocale || !mProcessesReady) {
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
}
broadcastIntentLocked(null, null, intent,