Move a member call out of the way
Change-Id: I5da48442c0b39aaff817c3b6d067a9b13fda0643
This commit is contained in:
parent
747cf0435a
commit
243e370fcb
1 changed files with 1 additions and 1 deletions
|
@ -1394,6 +1394,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (SPACE_STATE_DOUBLE == spaceState) {
|
if (SPACE_STATE_DOUBLE == spaceState) {
|
||||||
|
mHandler.cancelDoubleSpacesTimer();
|
||||||
if (revertDoubleSpaceWhileInBatchEdit()) {
|
if (revertDoubleSpaceWhileInBatchEdit()) {
|
||||||
// No need to reset mSpaceState, it has already be done (that's why we
|
// No need to reset mSpaceState, it has already be done (that's why we
|
||||||
// receive it as a parameter)
|
// receive it as a parameter)
|
||||||
|
@ -2075,7 +2076,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean revertDoubleSpaceWhileInBatchEdit() {
|
private boolean revertDoubleSpaceWhileInBatchEdit() {
|
||||||
mHandler.cancelDoubleSpacesTimer();
|
|
||||||
// Here we test whether we indeed have a period and a space before us. This should not
|
// Here we test whether we indeed have a period and a space before us. This should not
|
||||||
// be needed, but it's there just in case something went wrong.
|
// be needed, but it's there just in case something went wrong.
|
||||||
final CharSequence textBeforeCursor = mConnection.getTextBeforeCursor(2, 0);
|
final CharSequence textBeforeCursor = mConnection.getTextBeforeCursor(2, 0);
|
||||||
|
|
Loading…
Reference in a new issue