Fixed file service not broadcasting indeterminate states

This commit is contained in:
Viktor De Pasquale 2019-11-11 17:59:44 +01:00
parent a12eb3fc6f
commit d6d82edff5

View File

@ -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))
}
}