Be always confident in the current language when only one
Change-Id: I7ea289f7e78aa33562c7737e91024a25c02333b6
This commit is contained in:
parent
bb4075bc93
commit
2d81c1f183
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue