Fix a flash in the wrong place
Bug: 7226099 Change-Id: I8f74802b3ae24018fc4176fb2fff2c777ae170b0
This commit is contained in:
parent
aac53dd7f5
commit
9e9e948a70
1 changed files with 2 additions and 3 deletions
|
@ -1723,9 +1723,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