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

Commit 13fbe3d7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add isFaceAuthEnabledForUser checks in KeyguardLiftController" am:...

Merge "Add isFaceAuthEnabledForUser checks in KeyguardLiftController" am: 37053a57 am: 9b6cf8fd am: dc2337c1 am: 27b13180 am: b8cf04e1

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1375617

Change-Id: Id4c1d5d588df81890096bd45f686c34ef172cfad
parents 3c918287 b8cf04e1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -84,7 +84,9 @@ class KeyguardLiftController constructor(
        val onKeyguard = keyguardUpdateMonitor.isKeyguardVisible &&
                !statusBarStateController.isDozing

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