From a6dfd27a15228f68ca3bb96c1e585d4e3c803b13 Mon Sep 17 00:00:00 2001 From: andrewc1 Date: Fri, 18 Sep 2020 22:58:32 -0700 Subject: [PATCH] Convert color state lists to state list drawables for filter background colors. This eliminates an incompatibility on earlier Android OS versions (https://stackoverflow.com/questions/3953606/how-to-specify-background-color-in-color-state-list-resources) --- core/src/main/res/color/filter_dialog_background_dark.xml | 5 ----- core/src/main/res/color/filter_dialog_background_light.xml | 5 ----- core/src/main/res/drawable/filter_dialog_background_dark.xml | 5 +++++ .../src/main/res/drawable/filter_dialog_background_light.xml | 5 +++++ core/src/main/res/values/styles.xml | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 core/src/main/res/color/filter_dialog_background_dark.xml delete mode 100644 core/src/main/res/color/filter_dialog_background_light.xml create mode 100644 core/src/main/res/drawable/filter_dialog_background_dark.xml create mode 100644 core/src/main/res/drawable/filter_dialog_background_light.xml diff --git a/core/src/main/res/color/filter_dialog_background_dark.xml b/core/src/main/res/color/filter_dialog_background_dark.xml deleted file mode 100644 index 3df2a80dc..000000000 --- a/core/src/main/res/color/filter_dialog_background_dark.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/src/main/res/color/filter_dialog_background_light.xml b/core/src/main/res/color/filter_dialog_background_light.xml deleted file mode 100644 index 930325629..000000000 --- a/core/src/main/res/color/filter_dialog_background_light.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/src/main/res/drawable/filter_dialog_background_dark.xml b/core/src/main/res/drawable/filter_dialog_background_dark.xml new file mode 100644 index 000000000..9ea827147 --- /dev/null +++ b/core/src/main/res/drawable/filter_dialog_background_dark.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/core/src/main/res/drawable/filter_dialog_background_light.xml b/core/src/main/res/drawable/filter_dialog_background_light.xml new file mode 100644 index 000000000..e0a80737c --- /dev/null +++ b/core/src/main/res/drawable/filter_dialog_background_light.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index 972174da5..6dff2782f 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -74,7 +74,7 @@ @drawable/ic_volume_adaption_black @drawable/scrollbar_thumb_light @color/filter_dialog_clear_light - @color/filter_dialog_background_light + @drawable/filter_dialog_background_light