Be always confident in the current language when only one

Change-Id: I7ea289f7e78aa33562c7737e91024a25c02333b6
main
Jean Chalard 2014-11-28 12:16:55 +09:00
parent bb4075bc93
commit 2d81c1f183
1 changed files with 3 additions and 0 deletions

View File

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