mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Remove a useless variable (A21)
Change-Id: I901e6b0e2b994128da19d68233b9f68bb308cb95
This commit is contained in:
parent
4d5e7235c5
commit
19d02c19d0
@ -228,15 +228,15 @@ public class Suggest {
|
||||
|
||||
final boolean hasAutoCorrection;
|
||||
if (isCorrectionEnabled) {
|
||||
final SuggestedWordInfo bestSuggestion = suggestionsSet.isEmpty()
|
||||
? null : suggestionsSet.first();
|
||||
if (null != whitelistedWord) {
|
||||
hasAutoCorrection = true;
|
||||
} else if (!AutoCorrection.isWhitelistedOrNotAWord(
|
||||
mDictionaries, consideredWord, false)) {
|
||||
hasAutoCorrection = true;
|
||||
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(bestSuggestion,
|
||||
consideredWord, mAutoCorrectionThreshold)) {
|
||||
} else if (suggestionsSet.isEmpty()) {
|
||||
hasAutoCorrection = false;
|
||||
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(suggestionsSet.first(),
|
||||
consideredWord, mAutoCorrectionThreshold)) {
|
||||
hasAutoCorrection = true;
|
||||
} else {
|
||||
hasAutoCorrection = false;
|
||||
|
Loading…
Reference in New Issue
Block a user