Merge "Fix a flash in the wrong place"
This commit is contained in:
commit
8fb2f6a441
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue