LatinIME: Fix to English dictionary can be added after deleting
English dictionary item is deleted from Database when enter AOSP
settings at the second time.
Add a judgement to avoid English dictionary item to be deleted.
Change-Id: I5a69d583db5585ae4dcc9a888bb66c9bf98fe82f
CRs-Fixed: 857148
diff --git a/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java b/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
index 308b123..471fca4 100644
--- a/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
+++ b/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java
@@ -403,7 +403,8 @@
if (!f.isFile()) {
continue;
}
- } else if (MetadataDbHelper.STATUS_AVAILABLE == wordListStatus) {
+ } else if (MetadataDbHelper.STATUS_AVAILABLE == wordListStatus
+ || MetadataDbHelper.STATUS_DELETING == wordListStatus) {
// The locale is the id for the main dictionary.
UpdateHandler.installIfNeverRequested(context, clientId, wordListId);
continue;