From 959fe9f2e3aaba6184ed3bfcdfac3df499a8398d Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Mon, 30 Nov 2015 18:46:09 +1100 Subject: [PATCH] Show indeterminate progress when persisting the temp apk table. Will also appear as indeterminate if: * The repo being downloaded from doesn't send a Content-Length header. * While connecting to the HTTP server to begin downloading. --- F-Droid/src/org/fdroid/fdroid/UpdateService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/F-Droid/src/org/fdroid/fdroid/UpdateService.java b/F-Droid/src/org/fdroid/fdroid/UpdateService.java index aca75b31a..6ad914c59 100644 --- a/F-Droid/src/org/fdroid/fdroid/UpdateService.java +++ b/F-Droid/src/org/fdroid/fdroid/UpdateService.java @@ -237,6 +237,8 @@ public class UpdateService extends IntentService implements ProgressListener { .setCategory(NotificationCompat.CATEGORY_SERVICE); if (progress != -1) { notificationBuilder.setProgress(100, progress, false); + } else { + notificationBuilder.setProgress(100, 0, true); } notificationManager.notify(NOTIFY_ID_UPDATING, notificationBuilder.build()); break;