Update listDivider for PreferenceFragmentCompat
The support library uses preference_list_divider_material for its list
divider and its color is a hardcoded value. That's why the divider color
can't be applied to the PreferenceFragmentCompat in Settings when
updating the divider color in the device defaults theme level. To make
it so we set its listDivider to list_divider_material to facilitate updating
the divider color.
Bug: 129943610
Test: visual
Change-Id: Ie992b925fae0effd4e00682a911ad004ac3fc033
diff --git a/res/values/styles_preference.xml b/res/values/styles_preference.xml
index 5cd7a6c..1f4421f 100644
--- a/res/values/styles_preference.xml
+++ b/res/values/styles_preference.xml
@@ -27,6 +27,7 @@
<item name="twoStateButtonPreferenceStyle">@style/TwoStateButtonPreference</item>
<item name="preferenceCategoryTitleTextAppearance">@style/TextAppearance.CategoryTitle
</item>
+ <item name="preferenceFragmentCompatStyle">@style/SettingsPreferenceFragmentStyle</item>
</style>
<style name="PreferenceTheme.SetupWizard">
@@ -63,6 +64,10 @@
<item name="android:negativeButtonText">@android:string/cancel</item>
</style>
+ <style name="SettingsPreferenceFragmentStyle" parent="@style/PreferenceFragment.Material">
+ <item name="android:divider">@*android:drawable/list_divider_material</item>
+ </style>
+
<style name="SetupWizardPreferenceFragmentStyle" parent="PreferenceFragment.Material">
<item name="android:layout">@layout/setup_preference</item>
</style>