preferences*: Rearrange and categorise preferences

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-06-01 14:57:11 +05:30
parent 6bf75bb68a
commit e69749c83b
3 changed files with 35 additions and 24 deletions

View File

@@ -26,6 +26,11 @@
app:summary="@string/pref_install_mode_summary" app:summary="@string/pref_install_mode_summary"
app:title="@string/pref_install_mode_title" /> app:title="@string/pref_install_mode_title" />
<PreferenceCategory
app:iconSpaceReserved="false"
app:singleLineTitle="false"
app:title="@string/pref_common_extra" />
<Preference <Preference
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:key="INSTALLATION_ABANDON_SESSION" app:key="INSTALLATION_ABANDON_SESSION"

View File

@@ -20,33 +20,34 @@
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"> <PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference <Preference
app:allowDividerBelow="true"
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:key="PREFERENCE_DISPENSER_URLS" app:key="PREFERENCE_DISPENSER_URLS"
app:summary="@string/pref_dispenser_summary" app:summary="@string/pref_dispenser_summary"
app:title="@string/pref_dispenser_title" /> app:title="@string/pref_dispenser_title" />
<PreferenceCategory <PreferenceCategory
app:allowDividerAbove="true"
app:allowDividerBelow="true"
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:key="PREFERENCE_CATEGORY_PROXY" app:singleLineTitle="false"
app:summary="protocol://user:password@host:port" app:summary="protocol://user:password@host:port"
app:title="@string/pref_network_proxy_title"> app:title="@string/pref_network_proxy_title" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
app:disableDependentsState="false" app:disableDependentsState="false"
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:key="PREFERENCE_PROXY_ENABLED" app:key="PREFERENCE_PROXY_ENABLED"
app:summary="@string/pref_network_proxy_enable_desc" app:summary="@string/pref_network_proxy_enable_desc"
app:title="@string/pref_network_proxy_enable" /> app:title="@string/pref_network_proxy_enable" />
<EditTextPreference <EditTextPreference
app:dependency="PREFERENCE_PROXY_ENABLED" app:dependency="PREFERENCE_PROXY_ENABLED"
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:key="PREFERENCE_PROXY_URL" app:key="PREFERENCE_PROXY_URL"
app:title="@string/pref_network_proxy_url" /> app:title="@string/pref_network_proxy_url" />
</PreferenceCategory>
<PreferenceCategory
app:iconSpaceReserved="false"
app:singleLineTitle="false"
app:title="@string/pref_common_extra" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
app:defaultValue="false" app:defaultValue="false"

View File

@@ -20,13 +20,6 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"> xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_UPDATES_EXTENDED"
app:summary="@string/pref_updates_incompatible_desc"
app:title="@string/pref_updates_incompatible" />
<com.aurora.store.view.custom.preference.AuroraListPreference <com.aurora.store.view.custom.preference.AuroraListPreference
app:defaultValue="2" app:defaultValue="2"
app:entries="@array/pref_updates_auto" app:entries="@array/pref_updates_auto"
@@ -46,4 +39,16 @@
app:iconSpaceReserved="false" app:iconSpaceReserved="false"
app:min="1" app:min="1"
app:showSeekBarValue="true" /> app:showSeekBarValue="true" />
<PreferenceCategory
app:iconSpaceReserved="false"
app:singleLineTitle="false"
app:title="@string/pref_common_extra" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_UPDATES_EXTENDED"
app:summary="@string/pref_updates_incompatible_desc"
app:title="@string/pref_updates_incompatible" />
</androidx.preference.PreferenceScreen> </androidx.preference.PreferenceScreen>