From 6efb3e492716a4645983488748a68ad05494f972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 6 Aug 2013 15:36:13 +0200 Subject: [PATCH] Icons were not downloaded on first repo update if cache dir didn't exist --- src/org/fdroid/fdroid/UpdateService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/fdroid/fdroid/UpdateService.java b/src/org/fdroid/fdroid/UpdateService.java index f2f8e14c6..77e73505c 100644 --- a/src/org/fdroid/fdroid/UpdateService.java +++ b/src/org/fdroid/fdroid/UpdateService.java @@ -257,12 +257,12 @@ public class UpdateService extends IntentService implements ProgressListener { if (success) { File d = DB.getIconsPath(this); List toDownloadIcons = null; - if (changes) { - toDownloadIcons = acceptedapps; - } else if (!d.exists()) { + if (!d.exists()) { Log.d("FDroid", "Icons were wiped. Re-downloading all of them."); d.mkdirs(); toDownloadIcons = ((FDroidApp) getApplication()).getApps(); + } else if (changes) { + toDownloadIcons = acceptedapps; } if (toDownloadIcons != null) { sendStatus(STATUS_INFO,