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

Commit 3b745ddf authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Do not register lift when sensor is not present

Fixes: 141284056
Test: force snesor to return null
Change-Id: I45583e4f1c06ec7088a7d6335597a8671555f339
parent 7f660f19
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ class KeyguardLiftController constructor(
    }

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