Skip to content
Snippets Groups Projects
Commit 79f53178 authored by Jean Chalard's avatar Jean Chalard
Browse files

Match calls for future consolidation (A38)

Change-Id: I2b2ab99e801fa8b4b30eab16a8aefb8cfe104ba9
parent cd288620
No related branches found
No related tags found
No related merge requests found
...@@ -225,8 +225,8 @@ public class Suggest { ...@@ -225,8 +225,8 @@ public class Suggest {
hasAutoCorrection = false; hasAutoCorrection = false;
} else if (null != whitelistedWord) { } else if (null != whitelistedWord) {
hasAutoCorrection = true; hasAutoCorrection = true;
} else if (!AutoCorrection.isWhitelistedOrNotAWord( } else if (!AutoCorrection.isWhitelistedOrNotAWord(mDictionaries, consideredWord,
mDictionaries, consideredWord, wordComposer.isFirstCharCapitalized())) { wordComposer.isFirstCharCapitalized())) {
hasAutoCorrection = true; hasAutoCorrection = true;
} else if (suggestionsSet.isEmpty()) { } else if (suggestionsSet.isEmpty()) {
hasAutoCorrection = false; hasAutoCorrection = false;
...@@ -282,7 +282,7 @@ public class Suggest { ...@@ -282,7 +282,7 @@ public class Suggest {
// a boolean flag. Right now this is handled with a slight hack in // a boolean flag. Right now this is handled with a slight hack in
// WhitelistDictionary#shouldForciblyAutoCorrectFrom. // WhitelistDictionary#shouldForciblyAutoCorrectFrom.
final boolean allowsToBeAutoCorrected = AutoCorrection.isWhitelistedOrNotAWord( final boolean allowsToBeAutoCorrected = AutoCorrection.isWhitelistedOrNotAWord(
getUnigramDictionaries(), consideredWord, wordComposer.isFirstCharCapitalized()) mDictionaries, consideredWord, wordComposer.isFirstCharCapitalized())
// If we don't have a main dictionary, we never want to auto-correct. The reason for this // If we don't have a main dictionary, we never want to auto-correct. The reason for this
// is, the user may have a contact whose name happens to match a valid word in their // is, the user may have a contact whose name happens to match a valid word in their
// language, and it will unexpectedly auto-correct. For example, if the user types in // language, and it will unexpectedly auto-correct. For example, if the user types in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment