summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lucas Dupin <dupin@google.com> 2019-03-25 16:27:51 -0700
committer Lucas Dupin <dupin@google.com> 2019-03-25 16:27:51 -0700
commit62206ccb11fbddf63cde69f5ad7efa94e775e36c (patch)
tree401f3d9ce83b16873a2db3ad41678426180cbd9a
parent2e5dd8cffe49d7cac98ae39b6224c787e66b6ba1 (diff)
Respond to taps and lifts when AOD is off
Gesture registration happens in the doze machine, meaning that there's a dependency between slpi gestures and the doze service. Fixes: 118930173 Test: manual Change-Id: Ic8fd0ed1d2192720a8f0313544d491a498a5cb05
-rw-r--r--core/java/android/hardware/display/AmbientDisplayConfiguration.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/hardware/display/AmbientDisplayConfiguration.java b/core/java/android/hardware/display/AmbientDisplayConfiguration.java
index b122f199bc6f..c45b8ed52187 100644
--- a/core/java/android/hardware/display/AmbientDisplayConfiguration.java
+++ b/core/java/android/hardware/display/AmbientDisplayConfiguration.java
@@ -48,7 +48,10 @@ public class AmbientDisplayConfiguration {
return pulseOnNotificationEnabled(user)
|| pulseOnLongPressEnabled(user)
|| alwaysOnEnabled(user)
- || wakeScreenGestureEnabled(user);
+ || wakeScreenGestureEnabled(user)
+ || pickupGestureEnabled(user)
+ || tapGestureEnabled(user)
+ || doubleTapGestureEnabled(user);
}
/** {@hide} */