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:
parent
77ee4296a5
commit
959fe9f2e3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user