OSDN Git Service

Respond to taps and lifts when AOD is off
authorLucas Dupin <dupin@google.com>
Mon, 25 Mar 2019 23:27:51 +0000 (16:27 -0700)
committerLucas Dupin <dupin@google.com>
Mon, 25 Mar 2019 23:27:51 +0000 (16:27 -0700)
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

core/java/android/hardware/display/AmbientDisplayConfiguration.java

index b122f19..c45b8ed 100644 (file)
@@ -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} */