Merge "Fix a flash in the wrong place"

This commit is contained in:
Jean Chalard 2014-02-05 09:46:44 +00:00 committed by Android (Google) Code Review
commit 8fb2f6a441

View file

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