commit | 949045b6a3582c52191c8f44698ee92568b52724 | [log] [tgz] |
---|---|---|
author | Jean Chalard <jchalard@google.com> | Fri Nov 28 03:25:28 2014 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Nov 28 03:25:29 2014 +0000 |
tree | 6ea3803c02134e5f98bd1597607d2abad035b36d | |
parent | 796792ce6d1d613fee27d326d2c1ef57d2a706b4 [diff] | |
parent | 2d81c1f183049a74389b6c917ea5a8da780f0321 [diff] |
Merge "Be always confident in the current language when only one"
diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java index e363661..acf9cf1 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java +++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java
@@ -301,6 +301,9 @@ if (!mostProbableDictionaryGroup.mLocale.equals(mLocale)) { return false; } + if (mDictionaryGroups.length <= 1) { + return true; + } return mostProbableDictionaryGroup.mConfidence >= CONFIDENCE_THRESHOLD; }