Fixed issue with initial update.
This commit is contained in:
parent
32d89db8c6
commit
e8263e742d
@ -409,8 +409,8 @@ public class FDroid extends FragmentActivity {
|
|||||||
boolean hasTriedEmptyUpdate = getPreferences(MODE_PRIVATE).getBoolean(TRIED_EMPTY_UPDATE, false);
|
boolean hasTriedEmptyUpdate = getPreferences(MODE_PRIVATE).getBoolean(TRIED_EMPTY_UPDATE, false);
|
||||||
if (!hasTriedEmptyUpdate) {
|
if (!hasTriedEmptyUpdate) {
|
||||||
Log.d("FDroid", "Empty app list, and we haven't done an update yet. Forcing repo update.");
|
Log.d("FDroid", "Empty app list, and we haven't done an update yet. Forcing repo update.");
|
||||||
|
getPreferences(MODE_PRIVATE).edit().putBoolean(TRIED_EMPTY_UPDATE, true).apply();
|
||||||
updateRepos();
|
updateRepos();
|
||||||
getPreferences(MODE_PRIVATE).edit().putBoolean(TRIED_EMPTY_UPDATE, true);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
Log.d("FDroid", "Empty app list, but it looks like we've had an update previously. Will not force repo update.");
|
Log.d("FDroid", "Empty app list, but it looks like we've had an update previously. Will not force repo update.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user