From 9efdc707f3846a9946edab93440ee9313e11dcf7 Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Fri, 18 Nov 2022 15:01:55 +0000 Subject: [PATCH] Bouncer - Fix activity launch The bouncer view delegate was not being created soon enough, resulting in the dismiss action being dropped and not run after a succesful auth. Fixes: 259666226 Test: manual, follow steps in bug Change-Id: If2dbfc35379d6c1b0f46575ab9e4e4bb0769ce6f --- .../systemui/keyguard/ui/binder/KeyguardBouncerViewBinder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardBouncerViewBinder.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardBouncerViewBinder.kt index 3c927ee08494a..5a742b5356beb 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardBouncerViewBinder.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/KeyguardBouncerViewBinder.kt @@ -88,7 +88,7 @@ object KeyguardBouncerViewBinder { } } view.repeatWhenAttached { - repeatOnLifecycle(Lifecycle.State.STARTED) { + repeatOnLifecycle(Lifecycle.State.CREATED) { try { viewModel.setBouncerViewDelegate(delegate) launch {