aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-09-20 14:14:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-09-20 14:14:25 -0700
commit4912e2e00fe336d3bd8b88b31607165cc3927ea9 (patch)
tree197f0911968a03d20e1e9445efe9aa981c93cb20 /java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
parent5554192dd0374cbd539d5ac0378d57bf20803a37 (diff)
parent95dba8a82c1f15b9f5ec2d2eb6c7fc2cd5e67682 (diff)
downloadlatinime-4912e2e00fe336d3bd8b88b31607165cc3927ea9.tar.gz
latinime-4912e2e00fe336d3bd8b88b31607165cc3927ea9.tar.xz
latinime-4912e2e00fe336d3bd8b88b31607165cc3927ea9.zip
am 95dba8a8: Merge "The back button key event is delivered correctly"
* commit '95dba8a82c1f15b9f5ec2d2eb6c7fc2cd5e67682': The back button key event is delivered correctly
Diffstat (limited to 'java/src/com/android/inputmethod/latin/MoreSuggestionsView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/MoreSuggestionsView.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
index 15a0cec2e..5a2eb1632 100644
--- a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java
@@ -145,13 +145,6 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
// Nothing to do with.
}
- private final View.OnTouchListener mMotionEventDelegate = new View.OnTouchListener() {
- @Override
- public boolean onTouch(View view, MotionEvent me) {
- return MoreSuggestionsView.this.dispatchTouchEvent(me);
- }
- };
-
@Override
public void showMoreKeysPanel(View parentView, Controller controller, int pointX, int pointY,
PopupWindow window, KeyboardActionListener listener) {
@@ -170,9 +163,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
- (container.getMeasuredHeight() - container.getPaddingBottom())
+ parentView.getPaddingTop() + mCoordinates[1];
- container.setOnTouchListener(mMotionEventDelegate);
window.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
- window.setFocusable(true);
window.setOutsideTouchable(true);
window.setContentView(container);
window.setWidth(container.getMeasuredWidth());
@@ -193,6 +184,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel {
@Override
public boolean dismissMoreKeysPanel() {
+ if (mController == null) return false;
return mController.dismissMoreKeysPanel();
}