From fe0a3b41d81dec8270a0104ee13b319ad94215fd Mon Sep 17 00:00:00 2001 From: Andrew Cole Date: Thu, 6 Jul 2023 09:18:33 -0700 Subject: [PATCH] Updating materialColorSurfaceContainerHighest color access For any view files applying the WidgetConatinerTheme via widgetsTheme they were incorrectly inheriting themes and skipping the AppTheme provided but only in light mode. In dark mode the WidgetContainerTheme.Dark was correctly inheriting the theme. To avoid a risky theme update for all widgetsThemes we just modify the color accessor to use @color instead of ?attr as these colors should not be attributes AFAIKT Bug: b/289305591 Test: Follow repro steps on the bug for smartspace Change-Id: I26cc3239763f8eac3dfe5f094c6757692f46d1bc --- res/color-v31/surface.xml | 24 ------------------- res/drawable/add_item_dialog_background.xml | 2 +- .../button_top_rounded_bordered_ripple.xml | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 res/color-v31/surface.xml diff --git a/res/color-v31/surface.xml b/res/color-v31/surface.xml deleted file mode 100644 index da4571a61c..0000000000 --- a/res/color-v31/surface.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/res/drawable/add_item_dialog_background.xml b/res/drawable/add_item_dialog_background.xml index c3a82695c2..e279fa051a 100644 --- a/res/drawable/add_item_dialog_background.xml +++ b/res/drawable/add_item_dialog_background.xml @@ -1,7 +1,7 @@ - + diff --git a/res/drawable/button_top_rounded_bordered_ripple.xml b/res/drawable/button_top_rounded_bordered_ripple.xml index f15a4a0c5f..f5b68866cb 100644 --- a/res/drawable/button_top_rounded_bordered_ripple.xml +++ b/res/drawable/button_top_rounded_bordered_ripple.xml @@ -25,7 +25,7 @@ android:topRightRadius="12dp" android:bottomLeftRadius="4dp" android:bottomRightRadius="4dp" /> - +