Skip to content

Commit 1053eba

Browse files
jhenrique09aswin7469
authored andcommitted
KeyguardBouncer: Don't delay showing if face auth running
[someone5678] Forward port to A13 QPR3 Change-Id: I1897aa22a9c29627b2f03e14f093151453df7be4 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent e9518e3 commit 1053eba

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,6 @@ constructor(
7171
private val keyguardUpdateMonitor: KeyguardUpdateMonitor,
7272
keyguardBypassController: KeyguardBypassController,
7373
) {
74-
/** Whether we want to wait for face auth. */
75-
private val primaryBouncerFaceDelay =
76-
keyguardStateController.isFaceAuthEnabled &&
77-
!keyguardUpdateMonitor.getCachedIsUnlockWithFingerprintPossible(
78-
KeyguardUpdateMonitor.getCurrentUser()
79-
) &&
80-
!needsFullscreenBouncer() &&
81-
keyguardUpdateMonitor.isUnlockingWithBiometricAllowed(BiometricSourceType.FACE) &&
82-
!keyguardBypassController.bypassEnabled
83-
8474
/** Runnable to show the primary bouncer. */
8575
val showRunnable = Runnable {
8676
repository.setPrimaryShow(true)
@@ -179,11 +169,7 @@ constructor(
179169
}
180170

181171
repository.setPrimaryShowingSoon(true)
182-
if (primaryBouncerFaceDelay) {
183-
mainHandler.postDelayed(showRunnable, 1200L)
184-
} else {
185-
DejankUtils.postAfterTraversal(showRunnable)
186-
}
172+
DejankUtils.postAfterTraversal(showRunnable)
187173
keyguardStateController.notifyPrimaryBouncerShowing(true)
188174
primaryBouncerCallbackInteractor.dispatchStartingToShow()
189175
Trace.endSection()

0 commit comments

Comments
 (0)