diff options
author | 2014-02-05 01:48:08 -0800 | |
---|---|---|
committer | 2014-02-05 01:48:08 -0800 | |
commit | 7f2655eafd5941407f63c82445d7cab509a9b920 (patch) | |
tree | 6a143f5f19dfc453103a9e7e2a00eacbb7fd99cf /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | 15377bc11fc7b06b2bf9583a84af5aeee1fff4e8 (diff) | |
parent | 8fb2f6a441ec56b449fc408b4f6da60f904f4cec (diff) | |
download | latinime-7f2655eafd5941407f63c82445d7cab509a9b920.tar.gz latinime-7f2655eafd5941407f63c82445d7cab509a9b920.tar.xz latinime-7f2655eafd5941407f63c82445d7cab509a9b920.zip |
am 8fb2f6a4: Merge "Fix a flash in the wrong place"
* commit '8fb2f6a441ec56b449fc408b4f6da60f904f4cec':
Fix a flash in the wrong place
Diffstat (limited to 'java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index edca99830..3ecf5f0fb 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1839,9 +1839,8 @@ public final class InputLogic { // the segment of text starting at the supplied index and running for the length // of the auto-correction flash. At this moment, the "typedWord" argument is // ignored by TextView. - mConnection.commitCorrection( - new CorrectionInfo( - mConnection.getExpectedSelectionEnd() - typedWord.length(), + mConnection.commitCorrection(new CorrectionInfo( + mConnection.getExpectedSelectionEnd() - autoCorrection.length(), typedWord, autoCorrection)); } } |