aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-09-24 03:24:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-24 03:24:18 +0000
commit9a73a79cbe345ad637782fff6947d5ddced6aaf4 (patch)
tree1b12f43d575fbf1fcf19bce9634886a367b06814 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
parentb5dface8da9ed28f018b3f3351529da29857437d (diff)
parentd144b7874efc843bccc3ec7cd9a48d32d8f2395d (diff)
downloadlatinime-9a73a79cbe345ad637782fff6947d5ddced6aaf4.tar.gz
latinime-9a73a79cbe345ad637782fff6947d5ddced6aaf4.tar.xz
latinime-9a73a79cbe345ad637782fff6947d5ddced6aaf4.zip
Merge "Fix not intercepting touch event while in modal mode"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
index 631289bf3..197a544d1 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
@@ -393,6 +393,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
@Override
public boolean onInterceptTouchEvent(final MotionEvent me) {
+ if (mMoreSuggestionsView.isInModalMode()) {
+ return false;
+ }
if (!mMoreSuggestionsView.isShowingInParent()) {
mLastX = (int)me.getX();
mLastY = (int)me.getY();
@@ -416,7 +419,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_POINTER_UP) {
// Decided to be in the modal input mode.
- mMoreSuggestionsView.adjustVerticalCorrectionForModalMode();
+ mMoreSuggestionsView.setModalMode();
}
return false;
}