mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Be always confident in the current language when only one"
This commit is contained in:
commit
949045b6a3
@ -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…
x
Reference in New Issue
Block a user