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

Refactoring (A43)

Change-Id: Ib0b6f36999518096819ada2f19365767cb5f9931
parent 7ad088a4
No related branches found
No related tags found
No related merge requests found
...@@ -229,8 +229,8 @@ public class Suggest { ...@@ -229,8 +229,8 @@ public class Suggest {
mWhiteListDictionary.getWhitelistedWord(consideredWord); mWhiteListDictionary.getWhitelistedWord(consideredWord);
final boolean hasAutoCorrection; final boolean hasAutoCorrection;
if (!isCorrectionEnabled || wordComposer.isMostlyCaps() || wordComposer.isResumed() if (!isCorrectionEnabled || !allowsToBeAutoCorrected || wordComposer.isMostlyCaps()
|| !hasMainDictionary()) { || wordComposer.isResumed() || !hasMainDictionary()) {
// If we don't have a main dictionary, we never want to auto-correct. The reason for // 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 // this 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 // their language, and it will unexpectedly auto-correct. For example, if the user
...@@ -293,7 +293,7 @@ public class Suggest { ...@@ -293,7 +293,7 @@ public class Suggest {
// actual word, it says typedWordValid = false, which looks wrong. We should either // actual word, it says typedWordValid = false, which looks wrong. We should either
// rename the attribute or change the value. // rename the attribute or change the value.
!isPrediction && !allowsToBeAutoCorrected /* typedWordValid */, !isPrediction && !allowsToBeAutoCorrected /* typedWordValid */,
!isPrediction && hasAutoCorrection && allowsToBeAutoCorrected, /* willAutoCorrect */ !isPrediction && hasAutoCorrection, /* willAutoCorrect */
false /* isPunctuationSuggestions */, false /* isPunctuationSuggestions */,
false /* isObsoleteSuggestions */, false /* isObsoleteSuggestions */,
isPrediction); isPrediction);
......
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