diff options
author | 2013-04-17 19:47:00 -0700 | |
---|---|---|
committer | 2013-04-17 19:47:00 -0700 | |
commit | b8540f8ee523753c6bbc04a70ff9f850220a7dea (patch) | |
tree | 77523607ac0a0e7ca132ba8ffae29e02754559dc /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | 9b7fefea1c4abe05c947a036f1939250fe2d3045 (diff) | |
parent | 18414333d41ce877fb4a7aba76804cea2a8c89e3 (diff) | |
download | latinime-b8540f8ee523753c6bbc04a70ff9f850220a7dea.tar.gz latinime-b8540f8ee523753c6bbc04a70ff9f850220a7dea.tar.xz latinime-b8540f8ee523753c6bbc04a70ff9f850220a7dea.zip |
am 18414333: am e2af9b7e: Merge "Reset vertical correction when more suggestions are in modal mode"
* commit '18414333d41ce877fb4a7aba76804cea2a8c89e3':
Reset vertical correction when more suggestions are 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java index 4ef36fa46..2a21ec2f5 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java @@ -755,8 +755,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick @Override public boolean dispatchTouchEvent(final MotionEvent me) { - if (!mMoreSuggestionsView.isShowingInParent() - || mMoreSuggestionsMode == MORE_SUGGESTIONS_IN_MODAL_MODE) { + if (!mMoreSuggestionsView.isShowingInParent()) { mLastX = (int)me.getX(); mLastY = (int)me.getY(); if (mMoreSuggestionsSlidingDetector.onTouchEvent(me)) { @@ -784,6 +783,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick } else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_POINTER_UP) { // Decided to be in the modal input mode mMoreSuggestionsMode = MORE_SUGGESTIONS_IN_MODAL_MODE; + mMoreSuggestionsView.adjustVerticalCorrectionForModalMode(); } return true; } |