am 8fb2f6a4: Merge "Fix a flash in the wrong place"

* commit '8fb2f6a441ec56b449fc408b4f6da60f904f4cec':
  Fix a flash in the wrong place
main
Jean Chalard 2014-02-05 01:48:08 -08:00 committed by Android Git Automerger
commit 7f2655eafd
1 changed files with 2 additions and 3 deletions

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