From 5ed268cee1af0e302fd0fc61a98efa7d1e3c5a82 Mon Sep 17 00:00:00 2001 From: Michael W Date: Tue, 17 Dec 2024 18:44:28 +0100 Subject: [PATCH] Messaging: Style the SwitchPreferences Use the newer style of A15 Change-Id: I75a0e54f70f837d21d3aaa746f2e0ec7af226eda --- Android.bp | 1 + res/layout/preference_material_switch.xml | 14 ++++++++++++++ res/values/styles.xml | 10 ++++++++++ res/xml/preferences_application.xml | 4 ++-- res/xml/preferences_per_subscription.xml | 6 +++--- .../appsettings/ApplicationSettingsActivity.java | 6 +++--- 6 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 res/layout/preference_material_switch.xml diff --git a/Android.bp b/Android.bp index 604eb60..3225144 100644 --- a/Android.bp +++ b/Android.bp @@ -81,6 +81,7 @@ android_app { "com.android.vcard", "guava", "libphonenumber", + "com.google.android.material_material", ], aaptflags: [ diff --git a/res/layout/preference_material_switch.xml b/res/layout/preference_material_switch.xml new file mode 100644 index 0000000..6600fca --- /dev/null +++ b/res/layout/preference_material_switch.xml @@ -0,0 +1,14 @@ + + + diff --git a/res/values/styles.xml b/res/values/styles.xml index 3f9df48..0cf841b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -35,6 +35,7 @@ @color/text_highlight_color @style/BugleActionBar @style/AlertDialogTheme + @style/AppPreferenceThemeOverlay + + + + + diff --git a/res/xml/preferences_application.xml b/res/xml/preferences_application.xml index 323fce3..6b859b8 100644 --- a/res/xml/preferences_application.xml +++ b/res/xml/preferences_application.xml @@ -37,7 +37,7 @@ - - - - -