mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-03 12:01:53 +00:00
Fixed file service not broadcasting indeterminate states
This commit is contained in:
@@ -87,6 +87,7 @@ abstract class RemoteFileService : NotificationService() {
|
|||||||
.setProgress(maxRaw.toInt(), it.toInt(), false)
|
.setProgress(maxRaw.toInt(), it.toInt(), false)
|
||||||
.setContentText("%.2f / %.2f MB".format(progress, max))
|
.setContentText("%.2f / %.2f MB".format(progress, max))
|
||||||
} else {
|
} else {
|
||||||
|
send(-1f, subject)
|
||||||
notification.setContentText("%.2f MB / ??".format(progress))
|
notification.setContentText("%.2f MB / ??".format(progress))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user