Preferenes: Drop wifi only download support

Not used anywhere nor working with rework. Needs to be implemented properly
before adding again.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-02-01 10:40:44 +01:00
parent 17798b0a9a
commit aa95542b0d
3 changed files with 0 additions and 9 deletions

View File

@@ -50,7 +50,6 @@ object Preferences {
const val PREFERENCE_DOWNLOAD_EXTERNAL = "PREFERENCE_DOWNLOAD_EXTERNAL"
const val PREFERENCE_DOWNLOAD_DIRECTORY = "PREFERENCE_DOWNLOAD_DIRECTORY"
const val PREFERENCE_DOWNLOAD_WIFI_ONLY = "PREFERENCE_DOWNLOAD_WIFI_ONLY"
const val PREFERENCE_TOS_READ = "PREFERENCE_TOS_READ"

View File

@@ -42,7 +42,6 @@ import com.aurora.store.util.Preferences.PREFERENCE_DEFAULT
import com.aurora.store.util.Preferences.PREFERENCE_DEFAULT_SELECTED_TAB
import com.aurora.store.util.Preferences.PREFERENCE_DOWNLOAD_DIRECTORY
import com.aurora.store.util.Preferences.PREFERENCE_DOWNLOAD_EXTERNAL
import com.aurora.store.util.Preferences.PREFERENCE_DOWNLOAD_WIFI_ONLY
import com.aurora.store.util.Preferences.PREFERENCE_FILTER_AURORA_ONLY
import com.aurora.store.util.Preferences.PREFERENCE_FILTER_FDROID
import com.aurora.store.util.Preferences.PREFERENCE_FILTER_GOOGLE
@@ -181,7 +180,6 @@ class OnboardingFragment : Fragment(R.layout.fragment_onboarding) {
/*Downloader*/
save(PREFERENCE_DOWNLOAD_EXTERNAL, false)
save(PREFERENCE_DOWNLOAD_DIRECTORY, PathUtil.getExternalPath(requireContext()))
save(PREFERENCE_DOWNLOAD_WIFI_ONLY, false)
/*Network*/
save(PREFERENCE_INSECURE_ANONYMOUS, false)

View File

@@ -41,10 +41,4 @@
app:summary="@string/pref_install_delete_summary"
app:title="@string/pref_install_delete_title" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:iconSpaceReserved="false"
app:key="PREFERENCE_DOWNLOAD_WIFI_ONLY"
app:title="@string/pref_downloader_wifi_title" />
</androidx.preference.PreferenceScreen>