am 858045b4: Merge "Fix: wrong auto correction for whilelist and personalized words."
* commit '858045b41c589e178bef8b8269bb423f231f77e6': Fix: wrong auto correction for whilelist and personalized words.main
commit
0797c0039b
|
@ -161,10 +161,10 @@ public final class Suggest {
|
|||
// TODO: stop relying on indices to find where is the auto-correction in the suggested
|
||||
// words, and correct this test.
|
||||
final boolean allowsToBeAutoCorrected = (null != whitelistedWord
|
||||
&& !whitelistedWord.equals(consideredWord))
|
||||
&& !whitelistedWord.equals(typedWord))
|
||||
|| (consideredWord.length() > 1 && !mDictionaryFacilitator.isValidWord(
|
||||
consideredWord, wordComposer.isFirstCharCapitalized())
|
||||
&& !consideredWord.equals(firstSuggestion));
|
||||
&& !typedWord.equals(firstSuggestion));
|
||||
|
||||
final boolean hasAutoCorrection;
|
||||
// TODO: using isCorrectionEnabled here is not very good. It's probably useless, because
|
||||
|
|
Loading…
Reference in New Issue