diff options
author | 2014-02-05 18:33:41 +0900 | |
---|---|---|
committer | 2014-02-05 18:44:24 +0900 | |
commit | 9e9e948a70760d6283d78b5c91d3c0e50430b6bc (patch) | |
tree | ebbcd65e983afb8312372a71b85e16c6c978e526 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | |
parent | aac53dd7f55c5175ac8950617750b3d5c2adcf59 (diff) | |
download | latinime-9e9e948a70760d6283d78b5c91d3c0e50430b6bc.tar.gz latinime-9e9e948a70760d6283d78b5c91d3c0e50430b6bc.tar.xz latinime-9e9e948a70760d6283d78b5c91d3c0e50430b6bc.zip |
Fix a flash in the wrong place
Bug: 7226099
Change-Id: I8f74802b3ae24018fc4176fb2fff2c777ae170b0
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 a994a43af..267449248 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1723,9 +1723,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)); } } |