summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJoe LaPenna <jlapenna@google.com>2015-11-17 22:32:57 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-11-17 22:32:57 +0000
commitf7aceb60e3e0d6ec611b3fa2dd64e6e4e1196f4c (patch)
treef1184564860537e063d351e09538d3c1aaabe740 /services
parent8aa7e6a21a3428741159de2e28d87acb8b420e96 (diff)
parentf2b9b2d85ae1b48896ad6b685de4cda8fab1c8fb (diff)
downloadframeworks_base-f7aceb60e3e0d6ec611b3fa2dd64e6e4e1196f4c.zip
frameworks_base-f7aceb60e3e0d6ec611b3fa2dd64e6e4e1196f4c.tar.gz
frameworks_base-f7aceb60e3e0d6ec611b3fa2dd64e6e4e1196f4c.tar.bz2
Revert "Don\'t dispatch when non-interactive and the display is off."
am: f2b9b2d85a * commit 'f2b9b2d85ae1b48896ad6b685de4cda8fab1c8fb': Revert "Don't dispatch when non-interactive and the display is off."
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/policy/PhoneWindowManager.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index ace2505..0cbf614 100644
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -5265,11 +5265,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
}
private boolean shouldDispatchInputWhenNonInteractive() {
- if (mDisplay == null || mDisplay.getState() == Display.STATE_OFF) {
- return false;
- }
- // Send events to keyguard while the screen is on and it's showing.
- if (isKeyguardShowingAndNotOccluded()) {
+ // Send events to keyguard while the screen is on.
+ if (isKeyguardShowingAndNotOccluded() && mDisplay != null
+ && mDisplay.getState() != Display.STATE_OFF) {
return true;
}