From dce68bf7a5752024b5c36a1d9e8989284a39118f Mon Sep 17 00:00:00 2001 From: Alex Johnston Date: Mon, 19 Apr 2021 18:18:19 +0100 Subject: [PATCH] RequestManageCredentials dark theme Manual testing steps * Enable dark theme via Settings > display * Install TestDPC and select 'Request to manage credentials' * Verify dark theme is displayed (including light text) Bug: 177901172 Test: atest com.android.settings.security.RequestManageCredentialsTest manual testing Change-Id: I6db1361ffcbf1e193673eb5ca7ef3f403d5023b1 --- AndroidManifest.xml | 2 +- res/layout/request_manage_credentials.xml | 6 ++++-- res/values/styles.xml | 1 + res/values/themes.xml | 15 --------------- 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ce80fc5c403..fa2bbc90278 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1459,7 +1459,7 @@ diff --git a/res/layout/request_manage_credentials.xml b/res/layout/request_manage_credentials.xml index a2350ac5eea..ee3751cba53 100644 --- a/res/layout/request_manage_credentials.xml +++ b/res/layout/request_manage_credentials.xml @@ -18,7 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="wrap_content" + android:clipChildren="true"> + app:backgroundTint="?android:attr/colorPrimary" + android:theme="@style/Theme.CollapsingToolbar.Settings"/> diff --git a/res/values/styles.xml b/res/values/styles.xml index 078c6b6b37a..c878b5fa34f 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -804,6 +804,7 @@ 8dp horizontal true + ?android:colorBackground - -