Remove the xml entry when the system language is removed
Bug: 301395074 Test: atest SettingsRoboTests:com.android.settings.localepicker Change-Id: Ic771cd5146ab954c3da65748bf87cd14d30770b4
This commit is contained in:
@@ -158,13 +158,14 @@ public class AppLocalePickerActivity extends SettingsBaseActivity
|
||||
|
||||
private void broadcastAppLocaleChange(LocaleStore.LocaleInfo localeInfo) {
|
||||
if (!localeNotificationEnabled()) {
|
||||
Log.w(TAG, "Locale notification is not enabled");
|
||||
return;
|
||||
}
|
||||
String localeTag = localeInfo.getLocale().toLanguageTag();
|
||||
if (LocaleUtils.isInSystemLocale(localeTag) || localeInfo.isAppCurrentLocale()) {
|
||||
if (localeInfo.isAppCurrentLocale()) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
String localeTag = localeInfo.getLocale().toLanguageTag();
|
||||
int uid = getPackageManager().getApplicationInfo(mPackageName,
|
||||
PackageManager.GET_META_DATA).uid;
|
||||
boolean launchNotification = mNotificationController.shouldTriggerNotification(
|
||||
|
||||
Reference in New Issue
Block a user