Fix a flash in the wrong place

Bug: 7226099
Change-Id: I8f74802b3ae24018fc4176fb2fff2c777ae170b0
This commit is contained in:
Jean Chalard 2014-02-05 18:33:41 +09:00
parent aac53dd7f5
commit 9e9e948a70

View file

@ -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));
}
}