Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afd883f8 authored by Christopher Tate's avatar Christopher Tate
Browse files

During early boot, send LOCALE_CHANGED only to registered receivers

Bug 20855725
Bug 19060618

Change-Id: I368660ecc6ee97a0c2a2f627fa1b09288bc92bd1
parent ea2c4033
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);