summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2013-03-15 16:27:29 -0700
committer Michael Wright <michaelwr@google.com> 2013-03-21 20:45:03 -0700
commit75ebb37fafcaea7692d46b5abdbcd1465d88eea2 (patch)
tree6fe86077a69e6d16bd61d4fde8560c96a18a7f6a
parent765ddb4bf42634cc729017503833c3b077e4f29c (diff)
Add APP_SWITCH to app switch input dispatching optimization
Change-Id: I8a95fbf311ebd62bcdaaeecfacaea7996ddaec74
-rw-r--r--services/input/InputDispatcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp
index 0465215a8e8c..23a846b7ce95 100644
--- a/services/input/InputDispatcher.cpp
+++ b/services/input/InputDispatcher.cpp
@@ -538,7 +538,9 @@ void InputDispatcher::dropInboundEventLocked(EventEntry* entry, DropReason dropR
}
bool InputDispatcher::isAppSwitchKeyCode(int32_t keyCode) {
- return keyCode == AKEYCODE_HOME || keyCode == AKEYCODE_ENDCALL;
+ return keyCode == AKEYCODE_HOME
+ || keyCode == AKEYCODE_ENDCALL
+ || keyCode == AKEYCODE_APP_SWITCH;
}
bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) {