Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a410d3a authored by Lucas Dupin's avatar Lucas Dupin
Browse files

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 3b745ddf)
parent c60e0323
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -67,6 +67,9 @@ class KeyguardLiftController constructor(
    }

    private fun updateListeningState() {
        if (pickupSensor == null) {
            return
        }
        val onKeyguard = keyguardUpdateMonitor.isKeyguardVisible &&
                !statusBarStateController.isDozing