aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-05 18:33:41 +0900
committerJean Chalard <jchalard@google.com>2014-02-05 18:44:24 +0900
commit9e9e948a70760d6283d78b5c91d3c0e50430b6bc (patch)
treeebbcd65e983afb8312372a71b85e16c6c978e526 /java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java
parentaac53dd7f55c5175ac8950617750b3d5c2adcf59 (diff)
downloadlatinime-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.java5
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));
}
}