Merge "Be always confident in the current language when only one"

This commit is contained in:
Jean Chalard 2014-11-28 03:25:28 +00:00 committed by Android (Google) Code Review
commit 949045b6a3

View file

@ -301,6 +301,9 @@ public class DictionaryFacilitator {
if (!mostProbableDictionaryGroup.mLocale.equals(mLocale)) { if (!mostProbableDictionaryGroup.mLocale.equals(mLocale)) {
return false; return false;
} }
if (mDictionaryGroups.length <= 1) {
return true;
}
return mostProbableDictionaryGroup.mConfidence >= CONFIDENCE_THRESHOLD; return mostProbableDictionaryGroup.mConfidence >= CONFIDENCE_THRESHOLD;
} }