From 995adbccceb2eaab476639c857cffc95d641d087 Mon Sep 17 00:00:00 2001 From: Vincent Wang Date: Tue, 27 Jun 2023 07:38:05 +0000 Subject: [PATCH] Fix Wiping and LastAttemptBeforeWipe dialog are covered by CredentialView Bug: b/285283206 Test: 1. Install testDPC and setup work profile via tesDCP 2. Diable "Use one lock for work profile and device screen" 3. Set another password for work profile 4. set "Max password failures for local wipe" to 3 5. Lock device 6. Unlock device 7. Launch any work profile app 8. Enter wrong password twice and check if LastAttemptBeforeWipe dialog is visible 9. Enter wrong password and check if wiping dialog is visible Change-Id: Ic058b914bf3c6591aeca700331a08b1e58809390 --- .../com/android/systemui/biometrics/AuthContainerView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java b/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java index d8348eda3d97a..559e441254224 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthContainerView.java @@ -250,7 +250,7 @@ public class AuthContainerView extends LinearLayout .setMessage(messageBody) .setPositiveButton(android.R.string.ok, null) .create(); - alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL); + alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); alertDialog.show(); } @@ -263,7 +263,7 @@ public class AuthContainerView extends LinearLayout .setOnDismissListener( dialog -> animateAway(AuthDialogCallback.DISMISSED_ERROR)) .create(); - alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL); + alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG); alertDialog.show(); }