Revert "Revert "TopLevelSettings: custom settings layout [3/3]""

This reverts commit 2a3921c969.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Hưng Phan
2022-03-29 19:31:26 +07:00
parent 9628d55a7a
commit 837e5f2d0c
4 changed files with 47 additions and 1 deletions

View File

@@ -521,6 +521,23 @@
<item>@string/status_bar_date_format_custom</item>
</string-array>
<!-- Settings dashboard styles-->
<string-array name="settings_dashboard_style_entries" translatable="false">
<item>@string/settings_dashboard_style_aosp</item>
<item>@string/settings_dashboard_style_oos11_gms</item>
<item>@string/settings_dashboard_style_oos11_microg</item>
<item>@string/settings_dashboard_style_oos12_gms</item>
<item>@string/settings_dashboard_style_oos12_microg</item>
</string-array>
<string-array name="settings_dashboard_style_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>
<!-- Lockscreen album art filter -->
<string-array name="lockscreen_albumart_filter_entries">
<item>@string/lockscreen_albumart_filter_none</item>

View File

@@ -638,6 +638,11 @@
<!-- Custom settings dashboard style -->
<string name="settings_dashboard_style_title">Settings layout</string>
<string name="settings_dashboard_style_aosp">AOSP</string>
<string name="settings_dashboard_style_oos11_gms">OOS11 Gapps</string>
<string name="settings_dashboard_style_oos11_microg">OOS11 MicroG</string>
<string name="settings_dashboard_style_oos12_gms">OOS12 Gapps</string>
<string name="settings_dashboard_style_oos12_microg">OOS12 MicroG</string>
<string name="settings_layout_category_title">Settings UI interface</string>
<!-- Media art -->

View File

@@ -17,6 +17,20 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/theme_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<PreferenceCategory
android:key="settings_layout_category"
android:title="@string/settings_layout_category_title">
<com.cherish.settings.preferences.SystemSettingListPreference
android:key="settings_dashboard_gms"
android:title="@string/settings_dashboard_style_title"
android:entries="@array/settings_dashboard_style_entries"
android:entryValues="@array/settings_dashboard_style_values"
android:summary="%s"
android:defaultValue="0" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/theme_customization_category">