diff options
author | 2011-09-29 14:11:21 +0900 | |
---|---|---|
committer | 2011-09-29 15:07:15 +0900 | |
commit | bfc1d732ac92fa1bd5b19ad9e7c71ce9a1f9dc00 (patch) | |
tree | c55d8d5e88d8178772a7f8c8bac4e2d455cc52f0 /java/src/com/android/inputmethod/latin/MoreSuggestionsView.java | |
parent | 727672d3fc8038180cf5e193cda5c3574bfabdcd (diff) | |
download | latinime-bfc1d732ac92fa1bd5b19ad9e7c71ce9a1f9dc00.tar.gz latinime-bfc1d732ac92fa1bd5b19ad9e7c71ce9a1f9dc00.tar.xz latinime-bfc1d732ac92fa1bd5b19ad9e7c71ce9a1f9dc00.zip |
Handle back key and outside touch correctly in more suggestions window
Bug: 5385284
Change-Id: Ic0517182d294c79e37c88f1ef30cb4d2917b2800
Diffstat (limited to 'java/src/com/android/inputmethod/latin/MoreSuggestionsView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/MoreSuggestionsView.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java index 5a2eb1632..51f6c040d 100644 --- a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java +++ b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java @@ -163,8 +163,6 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel { - (container.getMeasuredHeight() - container.getPaddingBottom()) + parentView.getPaddingTop() + mCoordinates[1]; - window.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED); - window.setOutsideTouchable(true); window.setContentView(container); window.setWidth(container.getMeasuredWidth()); window.setHeight(container.getMeasuredHeight()); @@ -221,22 +219,6 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel { }; @Override - public boolean dispatchTouchEvent(MotionEvent me) { - 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 || tracker.isInSlidingKeyInput()) { - return super.dispatchTouchEvent(me); - } else { - dismissMoreKeysPanel(); - return true; - } - } - - @Override public boolean onTouchEvent(MotionEvent me) { final int action = me.getAction(); final long eventTime = me.getEventTime(); |