aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-02-05 09:46:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-05 09:46:44 +0000
commit8fb2f6a441ec56b449fc408b4f6da60f904f4cec (patch)
tree98c66f57c4329ddb571e505d493e0dfc1cdb9718 /java
parent02a534d13f5e04173efdf10a509de8aa85d2d6a5 (diff)
parent9e9e948a70760d6283d78b5c91d3c0e50430b6bc (diff)
downloadlatinime-8fb2f6a441ec56b449fc408b4f6da60f904f4cec.tar.gz
latinime-8fb2f6a441ec56b449fc408b4f6da60f904f4cec.tar.xz
latinime-8fb2f6a441ec56b449fc408b4f6da60f904f4cec.zip
Merge "Fix a flash in the wrong place"
Diffstat (limited to '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 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));
}
}