diff options
author | 2010-04-15 16:48:13 -0700 | |
---|---|---|
committer | 2010-04-15 16:48:13 -0700 | |
commit | 335a0c55118f34485266ea2cd24b487517f4f2c3 (patch) | |
tree | 6f5bae0aaeb7cc735c8e62e512705295f8acf5c1 /java/src | |
parent | 41c2b30a34057b99c2afb89203b17379c85f245f (diff) | |
parent | 938c178215d38c6f085b32b0994598f9e8bc5ab5 (diff) | |
download | latinime-335a0c55118f34485266ea2cd24b487517f4f2c3.tar.gz latinime-335a0c55118f34485266ea2cd24b487517f4f2c3.tar.xz latinime-335a0c55118f34485266ea2cd24b487517f4f2c3.zip |
am 938c1782: Fix for hanging extension keyboard. Bug: 2593488
Merge commit '938c178215d38c6f085b32b0994598f9e8bc5ab5' into froyo-plus-aosp
* commit '938c178215d38c6f085b32b0994598f9e8bc5ab5':
Fix for hanging extension keyboard. Bug: 2593488
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboardView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java index 6ba2095c0..74fc475e6 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java @@ -192,12 +192,12 @@ public class LatinKeyboardView extends KeyboardView { mLastY = (int) me.getY(); invalidate(); } + // If an extension keyboard is visible or this is an extension keyboard, don't look // for sudden jumps. Otherwise, if there was a sudden jump, return without processing the // actual motion event. if (!mExtensionVisible && !mIsExtensionType && handleSuddenJump(me)) return true; - // Reset any bounding box controls in the keyboard if (me.getAction() == MotionEvent.ACTION_DOWN) { keyboard.keyReleased(); @@ -219,7 +219,9 @@ public class LatinKeyboardView extends KeyboardView { if (keyboard.getExtension() == 0) { return super.onTouchEvent(me); } - if (me.getY() < 0) { + // If the motion event is above the keyboard and it's not an UP event coming + // even before the first MOVE event into the extension area + if (me.getY() < 0 && (mExtensionVisible || me.getAction() != MotionEvent.ACTION_UP)) { if (mExtensionVisible) { int action = me.getAction(); if (mFirstEvent) action = MotionEvent.ACTION_DOWN; |