From b6db15ac2ffc4e29bf5abc0f7bb0a8d75ed8feb5 Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Thu, 16 Jun 2022 12:24:49 +0100 Subject: Make WorkLockActivity theme translucent * Instead, set the background in the auth_biometric_background view * This fixes a bug where there is an infinite loop to start the confirm device credential intent Bug: 234536059 Test: Manual testing with TestDPC Manual testing steps * Setup device with TestDPC * Set a work lock * Open TestDPC in the work profile * Select "lock now" * Verify there is no infinite loop Change-Id: I866e3d48a66e562050ad89ebc7f2ae0ac0455737 --- packages/SystemUI/AndroidManifest.xml | 2 +- packages/SystemUI/res/layout/auth_biometric_background.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI') diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index 490a3f53fd6a..6f22b49fc6a6 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -723,7 +723,7 @@ android:excludeFromRecents="true" android:stateNotNeeded="true" android:resumeWhilePausing="true" - android:theme="@style/Theme.AppCompat.DayNight.NoActionBar"> + android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"> diff --git a/packages/SystemUI/res/layout/auth_biometric_background.xml b/packages/SystemUI/res/layout/auth_biometric_background.xml index 7ce81ad7f01b..995aea11ffc6 100644 --- a/packages/SystemUI/res/layout/auth_biometric_background.xml +++ b/packages/SystemUI/res/layout/auth_biometric_background.xml @@ -16,6 +16,8 @@ -->