From 3c8ff4712fb37865943c8958b4bb6d85eb07ca33 Mon Sep 17 00:00:00 2001 From: Robert Horvath Date: Fri, 22 Apr 2022 16:25:58 +0200 Subject: [PATCH] Adjust LogAccessDialog themeing for TV The issues with the LogAccessDialogActivity dialog on TV were: - White text on white background (now using default background instead of ?attr/colorSurface) - The buttons had no focused state (now using default TV dialog button style) Bug: 228001277 Test: Manual, on adt3 and phone emulator in light & dark mode Change-Id: I8039183464ff5e13fcf77f146c56c43f6ee46f6a --- ..._access_user_consent_dialog_permission.xml | 58 ++++++++++--------- core/res/res/values-television/styles.xml | 21 +++++++ core/res/res/values/styles.xml | 14 ++--- 3 files changed, 58 insertions(+), 35 deletions(-) create mode 100644 core/res/res/values-television/styles.xml diff --git a/core/res/res/layout/log_access_user_consent_dialog_permission.xml b/core/res/res/layout/log_access_user_consent_dialog_permission.xml index c88bc92827086..1a395b9fc30f9 100644 --- a/core/res/res/layout/log_access_user_consent_dialog_permission.xml +++ b/core/res/res/layout/log_access_user_consent_dialog_permission.xml @@ -26,8 +26,7 @@ android:paddingLeft="24dp" android:paddingRight="24dp" android:paddingTop="24dp" - android:paddingBottom="24dp" - android:background="?attr/colorSurface"> + android:paddingBottom="24dp"> + android:gravity="center" /> -