From d6d82edff59d427b88b46a74cd1d3675de323696 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Mon, 11 Nov 2019 17:59:44 +0100 Subject: [PATCH] Fixed file service not broadcasting indeterminate states --- .../com/topjohnwu/magisk/model/download/RemoteFileService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt b/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt index 181290e0f..b613dc0cf 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt @@ -87,6 +87,7 @@ abstract class RemoteFileService : NotificationService() { .setProgress(maxRaw.toInt(), it.toInt(), false) .setContentText("%.2f / %.2f MB".format(progress, max)) } else { + send(-1f, subject) notification.setContentText("%.2f MB / ??".format(progress)) } }