diff options
author | jie shen <jie.shen@unisoc.com> | 2020-07-29 10:27:51 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | c0f255ed84327a7944b1eb83ad45bf1adc5da60b (patch) | |
tree | f785596cbef50dd5ac725a547c57d21bfa5ff323 | |
parent | 1a564a307d1643cb481dd1a388e8c5b426c70d44 (diff) |
[ArrowOS][11.0] Add isFaceAuthEnabledForUser checks in KeyguardLiftController
When request pick gesture sensor, judge that if the current user does not turn on the face unlocking function, the sensor should not be Listening
Fixes: 161954958
Test: presubmit
Change-Id: I34552315049e07f123403fe693251edb460fef5d
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt index 74d9f5402e36..bfe0684b5411 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardLiftController.kt @@ -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( } } } -}
\ No newline at end of file +} |