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