Revert a test for readability (A22)

Change-Id: I1df4cef5ae2736a22273843dce67f0012181bfd3
This commit is contained in:
Jean Chalard 2012-06-28 17:07:30 +09:00
parent 19d02c19d0
commit ea578f6b1d

View file

@ -227,20 +227,18 @@ public class Suggest {
mWhiteListDictionary.getWhitelistedWord(consideredWord); mWhiteListDictionary.getWhitelistedWord(consideredWord);
final boolean hasAutoCorrection; final boolean hasAutoCorrection;
if (isCorrectionEnabled) { if (!isCorrectionEnabled) {
if (null != whitelistedWord) { hasAutoCorrection = false;
hasAutoCorrection = true; } else if (null != whitelistedWord) {
} else if (!AutoCorrection.isWhitelistedOrNotAWord( hasAutoCorrection = true;
mDictionaries, consideredWord, false)) { } else if (!AutoCorrection.isWhitelistedOrNotAWord(
hasAutoCorrection = true; mDictionaries, consideredWord, false)) {
} else if (suggestionsSet.isEmpty()) { hasAutoCorrection = true;
hasAutoCorrection = false; } else if (suggestionsSet.isEmpty()) {
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(suggestionsSet.first(), hasAutoCorrection = false;
consideredWord, mAutoCorrectionThreshold)) { } else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(suggestionsSet.first(),
hasAutoCorrection = true; consideredWord, mAutoCorrectionThreshold)) {
} else { hasAutoCorrection = true;
hasAutoCorrection = false;
}
} else { } else {
hasAutoCorrection = false; hasAutoCorrection = false;
} }