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

Commit 2a9f2bb2 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

Merge remote-tracking branch 'origin/lineage-17.1' into v1-q

parents 38629afd 91648cac
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -73,7 +73,9 @@ class KeyguardLiftController constructor(
        val onKeyguard = keyguardUpdateMonitor.isKeyguardVisible &&
        val onKeyguard = keyguardUpdateMonitor.isKeyguardVisible &&
                !statusBarStateController.isDozing
                !statusBarStateController.isDozing


        val shouldListen = onKeyguard || bouncerVisible
        val userId = KeyguardUpdateMonitor.getCurrentUser()
        val isFaceEnabled = keyguardUpdateMonitor.isFaceAuthEnabledForUser(userId)
        val shouldListen = (onKeyguard || bouncerVisible) && isFaceEnabled
        if (shouldListen != isListening) {
        if (shouldListen != isListening) {
            isListening = shouldListen
            isListening = shouldListen