From e076c6d19168e8e74dbd113bc76a0439517e2dd0 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Wed, 13 Feb 2019 13:53:10 -0800 Subject: [PATCH] Only wake to lock screen if AOD is on Test: manual Bug: 124389844 Change-Id: Ib9682862045875c7771d4d303b6092532f2d49b4 --- .../SystemUI/src/com/android/systemui/doze/DozeSensors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java b/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java index 5efdc2f61d769..2d1dba6f79c8f 100644 --- a/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java +++ b/packages/SystemUI/src/com/android/systemui/doze/DozeSensors.java @@ -131,7 +131,7 @@ public class DozeSensors { new PluginSensor( new SensorManagerPlugin.Sensor(TYPE_WAKE_LOCK_SCREEN), Settings.Secure.DOZE_WAKE_SCREEN_GESTURE, - mConfig.wakeScreenGestureAvailable(), + mConfig.wakeScreenGestureAvailable() && alwaysOn, DozeLog.PULSE_REASON_SENSOR_WAKE_LOCK_SCREEN, false /* reports touch coordinates */, false /* touchscreen */),