From 39c2aeb19af4ea17517ab1bd2336dbb6455413f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 16 Apr 2015 19:04:14 +0200 Subject: [PATCH] updateEmptyRepos is now in views/fragments/AppListFragment --- F-Droid/src/org/fdroid/fdroid/FDroid.java | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/F-Droid/src/org/fdroid/fdroid/FDroid.java b/F-Droid/src/org/fdroid/fdroid/FDroid.java index 0707ada02..fbb02d573 100644 --- a/F-Droid/src/org/fdroid/fdroid/FDroid.java +++ b/F-Droid/src/org/fdroid/fdroid/FDroid.java @@ -385,26 +385,6 @@ public class FDroid extends ActionBarActivity { }); } - /** - * The first time the app is run, we will have an empty app list. - * If this is the case, we will attempt to update with the default repo. - * However, if we have tried this at least once, then don't try to do - * it automatically again, because the repos or internet connection may - * be bad. - */ - public boolean updateEmptyRepos() { - final String TRIED_EMPTY_UPDATE = "triedEmptyUpdate"; - boolean hasTriedEmptyUpdate = getPreferences(MODE_PRIVATE).getBoolean(TRIED_EMPTY_UPDATE, false); - if (!hasTriedEmptyUpdate) { - Log.d(TAG, "Empty app list, and we haven't done an update yet. Forcing repo update."); - getPreferences(MODE_PRIVATE).edit().putBoolean(TRIED_EMPTY_UPDATE, true).commit(); - updateRepos(); - return true; - } - Log.d(TAG, "Empty app list, but it looks like we've had an update previously. Will not force repo update."); - return false; - } - // Force a repo update now. A progress dialog is shown and the UpdateService // is told to do the update, which will result in the database changing. The // UpdateReceiver class should get told when this is finished.