mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Don't reset the value needed before it's used
Nice recipe for failure Bug: 13387534 Change-Id: Ida1978449c1997587b2ec0955c5c94fcef336121
This commit is contained in:
parent
e07a777ed6
commit
e93a7232d1
@ -357,9 +357,9 @@ public final class RichInputConnection {
|
||||
mExpectedSelEnd -= beforeLength;
|
||||
} else {
|
||||
// There are fewer characters before the cursor in the buffer than we are being asked to
|
||||
// delete. Only delete what is there.
|
||||
mExpectedSelStart = 0;
|
||||
// delete. Only delete what is there, and update the end with the amount deleted.
|
||||
mExpectedSelEnd -= mExpectedSelStart;
|
||||
mExpectedSelStart = 0;
|
||||
}
|
||||
if (null != mIC) {
|
||||
mIC.deleteSurroundingText(beforeLength, afterLength);
|
||||
|
Loading…
x
Reference in New Issue
Block a user