diff options
author | 2014-09-22 15:30:29 +0900 | |
---|---|---|
committer | 2014-09-22 15:30:29 +0900 | |
commit | d144b7874efc843bccc3ec7cd9a48d32d8f2395d (patch) | |
tree | fc8dc81f3100ec10ef4084073f61c4cf887987fe /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | 5fa6a538cc38f400797c96a491215c5246447e05 (diff) | |
download | latinime-d144b7874efc843bccc3ec7cd9a48d32d8f2395d.tar.gz latinime-d144b7874efc843bccc3ec7cd9a48d32d8f2395d.tar.xz latinime-d144b7874efc843bccc3ec7cd9a48d32d8f2395d.zip |
Fix not intercepting touch event while in modal mode
Bug: 17600156
Change-Id: Ife8f04550411d88311e08dd33e370a410d791ca2
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 33745a846..04264e664 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; } |