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
This commit is contained in:
Mill Chen
2019-05-10 01:50:57 +08:00
parent 484d5f914b
commit e3e966689d

View File

@@ -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>