Remove a useless variable (A21)
Change-Id: I901e6b0e2b994128da19d68233b9f68bb308cb95main
parent
4d5e7235c5
commit
19d02c19d0
|
@ -228,14 +228,14 @@ public class Suggest {
|
||||||
|
|
||||||
final boolean hasAutoCorrection;
|
final boolean hasAutoCorrection;
|
||||||
if (isCorrectionEnabled) {
|
if (isCorrectionEnabled) {
|
||||||
final SuggestedWordInfo bestSuggestion = suggestionsSet.isEmpty()
|
|
||||||
? null : suggestionsSet.first();
|
|
||||||
if (null != whitelistedWord) {
|
if (null != whitelistedWord) {
|
||||||
hasAutoCorrection = true;
|
hasAutoCorrection = true;
|
||||||
} else if (!AutoCorrection.isWhitelistedOrNotAWord(
|
} else if (!AutoCorrection.isWhitelistedOrNotAWord(
|
||||||
mDictionaries, consideredWord, false)) {
|
mDictionaries, consideredWord, false)) {
|
||||||
hasAutoCorrection = true;
|
hasAutoCorrection = true;
|
||||||
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(bestSuggestion,
|
} else if (suggestionsSet.isEmpty()) {
|
||||||
|
hasAutoCorrection = false;
|
||||||
|
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(suggestionsSet.first(),
|
||||||
consideredWord, mAutoCorrectionThreshold)) {
|
consideredWord, mAutoCorrectionThreshold)) {
|
||||||
hasAutoCorrection = true;
|
hasAutoCorrection = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue