Merge "Use app\'s best locale if they override LocaleList" into nyc-dev am: fbf3a0964a
am: fbdf46f663
* commit 'fbdf46f66323e80d4e90e926d0f199b64bf71f14':
Use app's best locale if they override LocaleList
Change-Id: I99bb920efcc7befa2817bed3a7fb7a0bcad4a13e
This commit is contained in:
@@ -5005,8 +5005,11 @@ public final class ActivityThread {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new AssertionError("chosen locale " + bestLocale + " must be present in LocaleList: "
|
|
||||||
+ newLocaleList.toLanguageTags());
|
// The app may have overridden the LocaleList with its own Locale
|
||||||
|
// (not present in the available list). Push the chosen Locale
|
||||||
|
// to the front of the list.
|
||||||
|
LocaleList.setDefault(new LocaleList(bestLocale, newLocaleList));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleBindApplication(AppBindData data) {
|
private void handleBindApplication(AppBindData data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user