Refine remove locale warning dialog string

- If the first language is not selected, just remove the body copy
  else warning user the locale will change to another language.

Fixes: 140723349
Test: manual & robotest
Change-Id: I9fec17ae85889f2864c3f3cae744f7181e6f9b2c
This commit is contained in:
Edgar Wang
2020-01-07 18:19:05 +08:00
parent b8fb854e98
commit 3b47408016
3 changed files with 132 additions and 25 deletions

View File

@@ -251,6 +251,10 @@ class LocaleDragAndDropAdapter
return result;
}
boolean isFirstLocaleChecked() {
return mFeedItemList != null && mFeedItemList.get(0).getChecked();
}
void addLocale(LocaleStore.LocaleInfo li) {
mFeedItemList.add(li);
notifyItemInserted(mFeedItemList.size() - 1);