summaryrefslogtreecommitdiffstats
path: root/libs/ui/InputReader.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-06-30 14:41:59 -0700
committerJeff Brown <jeffbrown@google.com>2010-06-30 14:41:59 -0700
commitd0097871828bb7d5d6eec06cadd92c2e3358849b (patch)
treec570862df0f2c38da96d8b88bb6ba10315810fc7 /libs/ui/InputReader.cpp
parent294c9fb8990ded73be52a3c1bfddbe1cebcd8b8e (diff)
downloadframeworks_base-d0097871828bb7d5d6eec06cadd92c2e3358849b.zip
frameworks_base-d0097871828bb7d5d6eec06cadd92c2e3358849b.tar.gz
frameworks_base-d0097871828bb7d5d6eec06cadd92c2e3358849b.tar.bz2
Fix injection of specially intercepted keys like HOME.
This change mainly unwinds a premature optimization in the dispatch pipeline. To test HOME injection, run 'adb shell input keyevent 3'. Change-Id: I1c4b7377c205da7c898014b8b07fc6dc1d46e4dd
Diffstat (limited to 'libs/ui/InputReader.cpp')
-rw-r--r--libs/ui/InputReader.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libs/ui/InputReader.cpp b/libs/ui/InputReader.cpp
index 217c597..899027c 100644
--- a/libs/ui/InputReader.cpp
+++ b/libs/ui/InputReader.cpp
@@ -1639,10 +1639,6 @@ bool InputReader::applyStandardInputDispatchPolicyActions(nsecs_t when,
*policyFlags |= POLICY_FLAG_BRIGHT_HERE;
}
- if (policyActions & InputReaderPolicyInterface::ACTION_INTERCEPT_DISPATCH) {
- *policyFlags |= POLICY_FLAG_INTERCEPT_DISPATCH;
- }
-
return policyActions & InputReaderPolicyInterface::ACTION_DISPATCH;
}