diff options
| author | wangjing <wangjing@codeaurora.org> | 2015-06-25 16:58:51 +0800 |
|---|---|---|
| committer | spaceman860 <spaceman8583@gmail.com> | 2015-10-13 05:17:27 +0000 |
| commit | 94d3af093221e970c4ce0fcae668067d725b2c1a (patch) | |
| tree | 08d98e7ead568326a0d3e80afb5a6c53125ec8bf | |
| parent | e7bd6786c581c52dc882e9dac9a44bc0e892fb60 (diff) | |
LatinIME: Fix to English dictionary can be added after deletingmm6.0
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
| -rw-r--r-- | java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java b/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java index 308b123e1..471fca436 100644 --- a/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java +++ b/java/src/com/android/inputmethod/dictionarypack/DictionaryProvider.java @@ -403,7 +403,8 @@ public final class DictionaryProvider extends ContentProvider { 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; |
