diff options
author | 2012-02-07 19:42:35 -0800 | |
---|---|---|
committer | 2012-02-07 19:42:35 -0800 | |
commit | 8174373a0ed11aaaf6d5cdfc9065e6b8641b19a6 (patch) | |
tree | 425782615173b30e6c356efa9aece32b06864c8c /java/src | |
parent | 5a6daf46cf52a3d7e95926c3fcbb3b3295159c29 (diff) | |
parent | 2124bc5bf5af31cf3d2789b70ebd2f24c815f5f4 (diff) | |
download | latinime-8174373a0ed11aaaf6d5cdfc9065e6b8641b19a6.tar.gz latinime-8174373a0ed11aaaf6d5cdfc9065e6b8641b19a6.tar.xz latinime-8174373a0ed11aaaf6d5cdfc9065e6b8641b19a6.zip |
Merge "Remove a nested edition occurence"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index c6278c250..1066c08d5 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1400,7 +1400,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } if (SPACE_STATE_DOUBLE == spaceState) { - if (revertDoubleSpace(ic)) { + if (revertDoubleSpaceWhileInBatchEdit(ic)) { // No need to reset mSpaceState, it has already be done (that's why we // receive it as a parameter) return; @@ -2205,7 +2205,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } // "ic" must not be null - private boolean revertDoubleSpace(final InputConnection ic) { + private boolean revertDoubleSpaceWhileInBatchEdit(final InputConnection ic) { mHandler.cancelDoubleSpacesTimer(); // 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. @@ -2218,10 +2218,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar + "\". \" just before the cursor."); return false; } - ic.beginBatchEdit(); ic.deleteSurroundingText(2, 0); ic.commitText(" ", 1); - ic.endBatchEdit(); return true; } |