summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/keyguard/domain
diff options
context:
space:
mode:
authorAaron Liu <aaronjli@google.com>2023-04-04 15:35:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-04-04 15:35:19 +0000
commit5ba925133ce6c187bbe71287a0e3d13fb84df79f (patch)
tree3f421791939b92a22fabd63e7ca3c3d4fa032197 /packages/SystemUI/src/com/android/systemui/keyguard/domain
parent858aafe3774b7cdea5fb463cef3d3ddf03f11622 (diff)
parent30651ca3af98ba3e0917e97c61a032671b0072fb (diff)
downloadbase-5ba925133ce6c187bbe71287a0e3d13fb84df79f.tar.gz
Merge changes I5a5714fc,Ib45034ea,I9e4bc66d,Ie341c5d8,I1f40e8b7 into udc-dev
* changes: Release PREVENT_BYPASS_KEYGUARD flag Release ASYNC_BOUNCER flag Ensure that bouncer resume propagates a... Fix KeyguardSecurityContainerControllerTest Ensure that flow is run on main dispatcher
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/keyguard/domain')
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt12
1 files changed, 4 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt b/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt
index 9212aa1c8ef5..970d00403f28 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt
@@ -142,22 +142,18 @@ constructor(
(isBouncerShowing() || repository.primaryBouncerShowingSoon.value) &&
needsFullscreenBouncer()
- if (!resumeBouncer && isBouncerShowing()) {
- // If bouncer is visible, the bouncer is already showing.
- return
- }
-
Trace.beginSection("KeyguardBouncer#show")
repository.setPrimaryScrimmed(isScrimmed)
if (isScrimmed) {
setPanelExpansion(KeyguardBouncerConstants.EXPANSION_VISIBLE)
}
+ // In this special case, we want to hide the bouncer and show it again. We want to emit
+ // show(true) again so that we can reinflate the new view.
if (resumeBouncer) {
- primaryBouncerView.delegate?.resume()
- // Bouncer is showing the next security screen and we just need to prompt a resume.
- return
+ repository.setPrimaryShow(false)
}
+
if (primaryBouncerView.delegate?.showNextSecurityScreenOrFinish() == true) {
// Keyguard is done.
return