Fix race condition with remote animation cancel/finish
When the animation is canceled, a call to finish is also
sent for clean up purposes. If the user unlocks with an
activity animation and then hits the power button
immediately, make sure the keyguard state gets correctly
set to shown.
Also, add more logging strings about why they WM keyguard
state is being updated.
Also, remove the errant call to show bouncer, which could
pop up in this scenario.
Fixes: 343327511
Test: manual - race condition when hitting power after
using UDFPS to unlock after tapping notification
Flag: com.android.systemui.relock_with_power_button_immediately
Change-Id: Iad62842ab1045d3c600e0bc97d3139ce431eefc6
diff --git a/packages/SystemUI/aconfig/systemui.aconfig b/packages/SystemUI/aconfig/systemui.aconfig
index 9046d4e..2d09c98 100644
--- a/packages/SystemUI/aconfig/systemui.aconfig
+++ b/packages/SystemUI/aconfig/systemui.aconfig
@@ -1237,6 +1237,16 @@
}
flag {
+ name: "relock_with_power_button_immediately"
+ namespace: "systemui"
+ description: "UDFPS unlock followed by immediate power button push should relock"
+ bug: "343327511"
+ metadata {
+ purpose: PURPOSE_BUGFIX
+ }
+}
+
+flag {
name: "lockscreen_preview_renderer_create_on_main_thread"
namespace: "systemui"
description: "Force preview renderer to be created on the main thread"