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:
@@ -270,12 +270,14 @@ class LocaleDragAndDropAdapter
|
||||
void removeChecked() {
|
||||
int itemCount = mFeedItemList.size();
|
||||
LocaleStore.LocaleInfo localeInfo;
|
||||
NotificationController controller = NotificationController.getInstance(mContext);
|
||||
for (int i = itemCount - 1; i >= 0; i--) {
|
||||
localeInfo = mFeedItemList.get(i);
|
||||
if (localeInfo.getChecked()) {
|
||||
FeatureFactory.getFeatureFactory().getMetricsFeatureProvider()
|
||||
.action(mContext, SettingsEnums.ACTION_REMOVE_LANGUAGE);
|
||||
mFeedItemList.remove(i);
|
||||
controller.removeNotificationInfo(localeInfo.getLocale().toLanguageTag());
|
||||
}
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
|
Reference in New Issue
Block a user