summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2014-04-22 17:00:11 -0700
committer Michael Wright <michaelwr@google.com> 2014-04-22 17:00:11 -0700
commit3da2834f0ee77268e0076ad1e24f319635c38b89 (patch)
tree32958e7aaa8f370bdaf01bfc761ef52e63375142
parentb78263d37690a6a5cb12dd31d82ad2e140b3dfc7 (diff)
Add ViewRootImpl#unhandledInputEvent API stub.
Doesn't actually work yet for non-KeyEvents. Change-Id: I3482ff780a9a7aef8ae27436f91a3619490b369f
-rw-r--r--core/java/android/view/ViewRootImpl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java
index 097dff050203..374787ebe47d 100644
--- a/core/java/android/view/ViewRootImpl.java
+++ b/core/java/android/view/ViewRootImpl.java
@@ -5821,6 +5821,13 @@ public final class ViewRootImpl implements ViewParent,
}
}
+ public void dispatchUnhandledInputEvent(InputEvent event) {
+ if (event instanceof KeyEvent) {
+ dispatchUnhandledKey((KeyEvent) event);
+ return;
+ }
+ }
+
public void dispatchAppVisibility(boolean visible) {
Message msg = mHandler.obtainMessage(MSG_DISPATCH_APP_VISIBILITY);
msg.arg1 = visible ? 1 : 0;