From f283ff72b609ada420703aa73e53bd0945546507 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Thu, 1 Apr 2021 23:33:09 -0700 Subject: [PATCH] Animate away instead of suddenly disappearing In certain cases, such as when callers cancel authentication, we are not animating away nicely. This fixes it. Bug: 152240892 Test: atest android.server.biometrics.BiometricSimpleTests#testBiometricCancellation Change-Id: I7e23de1453856afa2aec877792f8bdb76475d592 --- .../src/com/android/systemui/biometrics/AuthContainerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java b/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java index 4e93f58dd51f5..1c0aa06ad8d19 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java @@ -589,7 +589,7 @@ public class AuthContainerView extends LinearLayout @Override public void dismissFromSystemServer() { - removeWindowIfAttached(); + animateAway(false /* sendReason */, 0 /* reason */); } @Override