Skip to content
Snippets Groups Projects
Commit 8fb2f6a4 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Fix a flash in the wrong place"

parents 02a534d1 9e9e948a
No related branches found
No related tags found
No related merge requests found
...@@ -1839,9 +1839,8 @@ public final class InputLogic { ...@@ -1839,9 +1839,8 @@ public final class InputLogic {
// the segment of text starting at the supplied index and running for the length // 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 // of the auto-correction flash. At this moment, the "typedWord" argument is
// ignored by TextView. // ignored by TextView.
mConnection.commitCorrection( mConnection.commitCorrection(new CorrectionInfo(
new CorrectionInfo( mConnection.getExpectedSelectionEnd() - autoCorrection.length(),
mConnection.getExpectedSelectionEnd() - typedWord.length(),
typedWord, autoCorrection)); typedWord, autoCorrection));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment