Merge "Add isFaceAuthEnabledForUser checks in KeyguardLiftController" am: 37053a5737 am: 9b6cf8fde7 am: dc2337c1fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1375617 Change-Id: Iaafa4eb81d66f2d9e72bf4bf053cbe041402b93a
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -95,4 +97,4 @@ class KeyguardLiftController constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user