Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a6921990 authored by wangjing's avatar wangjing Committed by Michael Bestas
Browse files

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
parent 59aa5508
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;