Merge "Add isFaceAuthEnabledForUser checks in KeyguardLiftController"
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user