Cleanup (A114)
Change-Id: I7e24e0aeae7c004cae310ae9f46cf90dac2d4d14
This commit is contained in:
parent
02f1c1534c
commit
2549b4978e
1 changed files with 4 additions and 3 deletions
|
@ -215,8 +215,9 @@ public class Suggest {
|
||||||
// same time, it feels wrong that the SuggestedWord object includes information about
|
// same time, it feels wrong that the SuggestedWord object includes information about
|
||||||
// the current settings. It may also be useful to know, when the setting is off, whether
|
// the current settings. It may also be useful to know, when the setting is off, whether
|
||||||
// the word *would* have been auto-corrected.
|
// the word *would* have been auto-corrected.
|
||||||
if (!isCorrectionEnabled || !allowsToBeAutoCorrected || wordComposer.isMostlyCaps()
|
if (!isCorrectionEnabled || !allowsToBeAutoCorrected || !wordComposer.isComposingWord()
|
||||||
|| wordComposer.isResumed() || !hasMainDictionary()) {
|
|| wordComposer.isMostlyCaps() || 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
|
||||||
|
@ -278,7 +279,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.
|
||||||
!allowsToBeAutoCorrected /* typedWordValid */,
|
!allowsToBeAutoCorrected /* typedWordValid */,
|
||||||
!isPrediction && hasAutoCorrection, /* willAutoCorrect */
|
hasAutoCorrection, /* willAutoCorrect */
|
||||||
false /* isPunctuationSuggestions */,
|
false /* isPunctuationSuggestions */,
|
||||||
false /* isObsoleteSuggestions */,
|
false /* isObsoleteSuggestions */,
|
||||||
isPrediction);
|
isPrediction);
|
||||||
|
|
Loading…
Reference in a new issue