Merge "Add isFaceAuthEnabledForUser checks in KeyguardLiftController"

This commit is contained in:
Treehugger Robot
2020-07-30 03:36:40 +00:00
committed by Gerrit Code Review

View File

@@ -73,7 +73,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
@@ -84,4 +86,4 @@ class KeyguardLiftController constructor(
}
}
}
}
}