am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev

* commit '127d0b8065cb87fafddd0cf65a33e42afac69672':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
This commit is contained in:
Justin Harrison
2015-06-03 21:27:59 +00:00
committed by Android Git Automerger

View File

@ -16757,6 +16757,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);