diff options
author | 2012-01-16 18:44:02 -0800 | |
---|---|---|
committer | 2012-01-16 18:44:02 -0800 | |
commit | b22f77004af0f43c64030840e40138714a588b95 (patch) | |
tree | 8d13e2e0f21687d87500ba30a50fe502f8793727 /java/src | |
parent | 83998f7c0b9ae03196bcaec3681363de4dcbabc6 (diff) | |
parent | 72d285f4d758dd1ceafb7d9bd3dd330efd24c1f8 (diff) | |
download | latinime-b22f77004af0f43c64030840e40138714a588b95.tar.gz latinime-b22f77004af0f43c64030840e40138714a588b95.tar.xz latinime-b22f77004af0f43c64030840e40138714a588b95.zip |
am 72d285f4: Add some comments about resuming auto-suggestion
* commit '72d285f4d758dd1ceafb7d9bd3dd330efd24c1f8':
Add some comments about resuming auto-suggestion
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index e60f55060..2f5f2a5dd 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1372,6 +1372,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar ic.deleteSurroundingText(1, 0); } } else { + // We should be very careful about auto-correction cancellation and suggestion + // resuming here. The behavior needs to be different according to text field types, + // and it would be much clearer to test for them explicitly here rather than + // relying on implicit values like "whether the suggestion strip is displayed". if (mWordComposer.didAutoCorrectToAnotherWord()) { Utils.Stats.onAutoCorrectionCancellation(); cancelAutoCorrect(ic); @@ -1391,6 +1395,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } } + // See the comment above: must be careful about resuming auto-suggestion. if (mSuggestionsView != null && mSuggestionsView.dismissAddToDictionaryHint()) { // Go back to the suggestion mode if the user canceled the // "Touch again to save". |