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.
This commit is contained in:
Peter Serwylo 2015-11-30 18:46:09 +11:00
parent 77ee4296a5
commit 959fe9f2e3

View File

@ -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;