commit | b97fe85135fbdf31b210917fcbd2ef7c620e0da4 | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Mon Sep 23 11:54:56 2019 -0700 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sat Nov 16 00:27:07 2019 +0000 |
tree | d3ddfc08f36aab416b6fd980b8e10b6fa7343b83 | |
parent | 75b2c1bce561265d88f5b429f57ec38c7a2e83af [diff] |
Do not register lift when sensor is not present Bug: 141284056 Fixes: 142365481 Test: force snesor to return null Change-Id: I45583e4f1c06ec7088a7d6335597a8671555f339 (cherry picked from commit 3b745ddf4a0105ee01b42f5024be4e0370a89b6b) (cherry picked from commit 0a410d3a6c4d7cff0d617e501ecc14e61219a358)
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt index f4635d1..f7b8a2e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt
@@ -67,6 +67,9 @@ } private fun updateListeningState() { + if (pickupSensor == null) { + return + } val onKeyguard = keyguardUpdateMonitor.isKeyguardVisible && !statusBarStateController.isDozing