MainActivity: Restrict self-updates check to non-fdroid builds

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
ThIsLinked
2023-11-16 05:19:56 +02:00
committed by Aayush Gupta
parent 11302915d2
commit 63460f8629
6 changed files with 47 additions and 8 deletions

View File

@@ -393,4 +393,7 @@
<string name="android_market_desc">Android Market was an online store offering software applications designed for Android devices, retired in 2017.</string>
<string name="app_link_amazon_appstore" translatable="false">www.amazon.com</string>
<string name="amazon_appstore_desc">Amazon Appstore is an app store for Android-compatible platforms operated by Amazon.</string>
<string name="pref_self_update_title">Self-updates</string>
<string name="pref_self_update_summary">Check and notify if a new stable version of Aurora Store is available</string>
</resources>

View File

@@ -20,6 +20,14 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_SELF_UPDATE"
app:singleLineTitle="false"
app:summary="@string/pref_self_update_summary"
app:title="@string/pref_self_update_title" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"