From 9e9e948a70760d6283d78b5c91d3c0e50430b6bc Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Wed, 5 Feb 2014 18:33:41 +0900 Subject: [PATCH] Fix a flash in the wrong place Bug: 7226099 Change-Id: I8f74802b3ae24018fc4176fb2fff2c777ae170b0 --- .../com/android/inputmethod/latin/inputlogic/InputLogic.java | 5 ++--- 1 file 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)); } }