aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-09-12 21:33:14 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-12 21:33:14 -0700
commit6602b03e8057e2fbec6923c3aefb58f22594b97f (patch)
tree4b749205fe1f7cf334d932af4ef2194463d08711 /java/src
parent02ce5392f5d16a4c7878e05c92e7c15f8f414295 (diff)
parent2abd8547e3d9bfae93e7188222dcb1577977ad54 (diff)
downloadlatinime-6602b03e8057e2fbec6923c3aefb58f22594b97f.tar.gz
latinime-6602b03e8057e2fbec6923c3aefb58f22594b97f.tar.xz
latinime-6602b03e8057e2fbec6923c3aefb58f22594b97f.zip
Merge "Linger the "more suggestions" when the user is sliding the touch point"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/MoreSuggestionsView.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
index 695e60ffd..15a0cec2e 100644
--- a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
@@ -230,10 +230,13 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
@Override
public boolean dispatchTouchEvent(MotionEvent me) {
- final int x = (int)me.getX();
- final int y = (int)me.getY();
+ final int index = me.getActionIndex();
+ final int id = me.getPointerId(index);
+ final PointerTracker tracker = PointerTracker.getPointerTracker(id, this);
+ final int x = (int)me.getX(index);
+ final int y = (int)me.getY(index);
final boolean inside = (x >= 0 && x < getWidth() && y >= 0 && y < getHeight());
- if (inside) {
+ if (inside || tracker.isInSlidingKeyInput()) {
return super.dispatchTouchEvent(me);
} else {
dismissMoreKeysPanel();