mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Remove a useless test (A18)
allowsToBeAutoCorrected always returns false if the word is empty. This is because the whitelist never contains an empty string, and isValidWord returns false if the word is empty. Change-Id: I34ecc2a1563aea6db5b2f12796f251f6598576a2
This commit is contained in:
parent
b01cdb975a
commit
31b346aac6
@ -233,8 +233,8 @@ public class Suggest {
|
||||
final CharSequence autoCorrection;
|
||||
if (null != whitelistedWord) {
|
||||
autoCorrection = whitelistedWord;
|
||||
} else if (!TextUtils.isEmpty(consideredWord) &&
|
||||
!AutoCorrection.allowsToBeAutoCorrected(mDictionaries, consideredWord, false)) {
|
||||
} else if (!AutoCorrection.allowsToBeAutoCorrected(
|
||||
mDictionaries, consideredWord, false)) {
|
||||
autoCorrection = consideredWord;
|
||||
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(bestSuggestion,
|
||||
consideredWord, mAutoCorrectionThreshold)) {
|
||||
|
Loading…
Reference in New Issue
Block a user