FiltersPreference: Merge into UpdatesPreference

They only apply to updates as we try to show all available apps in
installed and blacklist fragment to be clear about all possible apps
aurora store can check updates for.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-11-20 11:39:29 +07:00
parent 0bc8e76f9f
commit bc3e1b0d1b
8 changed files with 65 additions and 106 deletions

View File

@@ -1,43 +0,0 @@
<!--
~ Aurora Store
~ Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
~
~ Aurora Store is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ Aurora Store is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
~
-->
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_FILTER_AURORA_ONLY"
app:summary="@string/pref_aurora_only_desc"
app:title="@string/pref_aurora_only" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_FILTER_GOOGLE"
app:summary="@string/pref_filter_google_summary"
app:title="@string/pref_filter_google_title" />
<SwitchPreferenceCompat
app:defaultValue="true"
app:iconSpaceReserved="false"
app:key="PREFERENCE_FILTER_FDROID"
app:summary="@string/pref_filter_fdroid_summary"
app:title="@string/pref_filter_fdroid_title" />
</PreferenceScreen>

View File

@@ -18,11 +18,6 @@
-->
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference
app:icon="@drawable/ic_filter"
app:key="pref_filter"
app:layout="@layout/item_preference"
app:title="@string/action_filter" />
<Preference
app:icon="@drawable/ic_installation"

View File

@@ -40,6 +40,32 @@
app:min="1"
app:showSeekBarValue="true" />
<PreferenceCategory
app:iconSpaceReserved="false"
app:singleLineTitle="false"
app:title="@string/action_filter" />
<SwitchPreferenceCompat
app:defaultValue="true"
app:iconSpaceReserved="false"
app:key="PREFERENCE_FILTER_FDROID"
app:summary="@string/pref_filter_fdroid_summary"
app:title="@string/pref_filter_fdroid_title" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_FILTER_GOOGLE"
app:summary="@string/pref_filter_google_summary"
app:title="@string/pref_filter_google_title" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_FILTER_AURORA_ONLY"
app:summary="@string/pref_aurora_only_desc"
app:title="@string/pref_aurora_only" />
<PreferenceCategory
app:iconSpaceReserved="false"
app:singleLineTitle="false"