Merge "Fix ShortcutService handling of locale change during device setup." am: 742048924f
am: 5a34193a54
Change-Id: I28ebbab625d12faeea4c3a9676dd73fc9f092b20
This commit is contained in:
@@ -294,13 +294,14 @@ class ShortcutUser {
|
|||||||
*/
|
*/
|
||||||
public void detectLocaleChange() {
|
public void detectLocaleChange() {
|
||||||
final String currentLocales = mService.injectGetLocaleTagsForUser(mUserId);
|
final String currentLocales = mService.injectGetLocaleTagsForUser(mUserId);
|
||||||
if (getKnownLocales().equals(currentLocales)) {
|
if (!TextUtils.isEmpty(mKnownLocales) && mKnownLocales.equals(currentLocales)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ShortcutService.DEBUG) {
|
if (ShortcutService.DEBUG) {
|
||||||
Slog.d(TAG, "Locale changed from " + currentLocales + " to " + mKnownLocales
|
Slog.d(TAG, "Locale changed from " + mKnownLocales + " to " + currentLocales
|
||||||
+ " for user " + mUserId);
|
+ " for user " + mUserId);
|
||||||
}
|
}
|
||||||
|
|
||||||
mKnownLocales = currentLocales;
|
mKnownLocales = currentLocales;
|
||||||
|
|
||||||
forAllPackages(pkg -> {
|
forAllPackages(pkg -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user