diff options
author | 2013-05-14 12:25:21 +0900 | |
---|---|---|
committer | 2013-05-14 20:28:03 +0900 | |
commit | 41016acacfa21354f59ed51db1f85ea3d99bf6a4 (patch) | |
tree | ffc8f11624315c5335a58f420931f8509e6ef103 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | c9398a3b399e46aa4fb4de18c4c3d41ffd96e1fa (diff) | |
download | latinime-41016acacfa21354f59ed51db1f85ea3d99bf6a4.tar.gz latinime-41016acacfa21354f59ed51db1f85ea3d99bf6a4.tar.xz latinime-41016acacfa21354f59ed51db1f85ea3d99bf6a4.zip |
Back to previous keyboard layout by canceling sliding input
Bug: 8915171
Change-Id: Iabdeb7920f67f89246087c3ee06240406ecfbc3d
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 5dd42bf02..e4594ace1 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1752,9 +1752,16 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // Called from PointerTracker through the KeyboardActionListener interface @Override + public void onFinishSlidingInput() { + // User finished sliding input. + mKeyboardSwitcher.onFinishSlidingInput(); + } + + // Called from PointerTracker through the KeyboardActionListener interface + @Override public void onCancelInput() { // User released a finger outside any key - mKeyboardSwitcher.onCancelInput(); + // Nothing to do so far. } @Override @@ -2621,8 +2628,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // Callback called by PointerTracker through the KeyboardActionListener. This is called when a // key is depressed; release matching call is onReleaseKey below. @Override - public void onPressKey(final int primaryCode) { - mKeyboardSwitcher.onPressKey(primaryCode); + public void onPressKey(final int primaryCode, final boolean isSinglePointer) { + mKeyboardSwitcher.onPressKey(primaryCode, isSinglePointer); } // Callback by PointerTracker through the KeyboardActionListener. This is called when a key |