Revert "[app] Disable auto-download of APKs because basic can't do it yet due to recent targetSdk"

This reverts commit f8a0c1c448.
This commit is contained in:
Torsten Grote
2023-03-24 13:11:50 -03:00
parent 7df86e3858
commit 415fd0c59d
3 changed files with 2 additions and 6 deletions

View File

@@ -42,12 +42,10 @@
android:title="@string/over_data"
android:defaultValue="@integer/defaultOverData"
android:layout="@layout/preference_seekbar"/>
<!-- TODO re-enable once basic can do auto-downloads
<SwitchPreferenceCompat
android:title="@string/update_auto_download"
android:summary="@string/update_auto_download_summary"
android:key="updateAutoDownload"/>
-->
<org.fdroid.fdroid.views.LiveSeekBarPreference
android:key="updateIntervalSeekBarPosition"
android:title="@string/update_interval"

View File

@@ -432,8 +432,7 @@ public final class Preferences implements SharedPreferences.OnSharedPreferenceCh
}
public boolean isAutoDownloadEnabled() {
return !"basic".equals(BuildConfig.FLAVOR) // TODO remove once basic can do auto-downloads
&& preferences.getBoolean(PREF_AUTO_DOWNLOAD_INSTALL_UPDATES, IGNORED_B);
return preferences.getBoolean(PREF_AUTO_DOWNLOAD_INSTALL_UPDATES, IGNORED_B);
}
/**

View File

@@ -43,7 +43,6 @@ import com.bumptech.glide.RequestManager;
import com.bumptech.glide.request.RequestOptions;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import org.fdroid.fdroid.BuildConfig;
import org.fdroid.fdroid.FDroidApp;
import org.fdroid.fdroid.Languages;
import org.fdroid.fdroid.Preferences;
@@ -565,7 +564,7 @@ public class PreferencesFragment extends PreferenceFragmentCompat
currentKeepCacheTime = Preferences.get().getKeepCacheTime();
if (!"basic".equals(BuildConfig.FLAVOR)) initAutoFetchUpdatesPreference(); // TODO remove once basic can do it
initAutoFetchUpdatesPreference();
initPrivilegedInstallerPreference();
initUseTorPreference(getActivity().getApplicationContext());
}