Set PreferenceThemeOverlay as preferenceTheme in Theme.SubSettingsBase

on R.

Setting preferenceTheme is needed for using AndroidX preference, and the
S+ version of the theme is setting the S+ PreferenceTheme.SettingsLib as
well. So set the vanilla AndroidX PreferenceThemeOverlay as
preferenceTheme on R.

Bug: 177638625
Test: presubmit
Change-Id: Icbf676849e31619a1192b4f1724a5d2932650e06
This commit is contained in:
Hai Zhang
2021-05-10 03:21:31 +00:00
parent 5959d504be
commit 8566a26429

View File

@@ -17,7 +17,9 @@
<resources>
<!-- Only using in Settings application -->
<style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings" />
<style name="Theme.SettingsBase" parent="@android:style/Theme.DeviceDefault.Settings">
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
</style>
<!-- Using in SubSettings page including injected settings page -->
<style name="Theme.SubSettingsBase" parent="Theme.SettingsBase">
@@ -25,4 +27,4 @@
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>
</resources>