Revert a test for readability (A22)
Change-Id: I1df4cef5ae2736a22273843dce67f0012181bfd3main
parent
19d02c19d0
commit
ea578f6b1d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue