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,8 +227,9 @@ public class Suggest {
mWhiteListDictionary.getWhitelistedWord(consideredWord);
final boolean hasAutoCorrection;
if (isCorrectionEnabled) {
if (null != whitelistedWord) {
if (!isCorrectionEnabled) {
hasAutoCorrection = false;
} else if (null != whitelistedWord) {
hasAutoCorrection = true;
} else if (!AutoCorrection.isWhitelistedOrNotAWord(
mDictionaries, consideredWord, false)) {
@ -241,9 +242,6 @@ public class Suggest {
} else {
hasAutoCorrection = false;
}
} else {
hasAutoCorrection = false;
}
if (whitelistedWord != null) {
suggestionsSet.add(new SuggestedWordInfo(whitelistedWord,