Merge "Limit LOCALE_CHANGED broadcast when init'ing." into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2adff0ec34
@@ -19040,7 +19040,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,
|
||||
|
||||
Reference in New Issue
Block a user