diff options
author | 2014-09-24 03:31:38 +0000 | |
---|---|---|
committer | 2014-09-24 03:31:38 +0000 | |
commit | 19b415169011d6d168239d7642f526f31f123a6e (patch) | |
tree | f970a4069602a43589ebe6394bb015a1b9980cfb /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | 044249095b7410f48526ec6af7a6f6d91e9339cd (diff) | |
parent | 9a73a79cbe345ad637782fff6947d5ddced6aaf4 (diff) | |
download | latinime-19b415169011d6d168239d7642f526f31f123a6e.tar.gz latinime-19b415169011d6d168239d7642f526f31f123a6e.tar.xz latinime-19b415169011d6d168239d7642f526f31f123a6e.zip |
am 9a73a79c: Merge "Fix not intercepting touch event while in modal mode"
* commit '9a73a79cbe345ad637782fff6947d5ddced6aaf4':
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.java | 5 |
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; } |