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

Commit e64e30fb authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Do not register lift when sensor is not present

am: 0a410d3a

Change-Id: I4dd5483a7ef208eb65a1690ed6c5182923ccd02e
parents 87bc4f1e 0a410d3a
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