3
3
Fork 1
mirror of https://github.com/recloudstream/cloudstream.git synced 2024-08-15 01:53:11 +00:00
This commit is contained in:
Luna712 2024-07-11 14:30:06 -06:00 committed by GitHub
parent cb21eff44a
commit 77e1b87574
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,15 +119,7 @@ class DownloadViewModel : ViewModel() {
var totalSelectedBytes = 0L
selectedItemsList.forEach { item ->
totalSelectedBytes += when (item) {
is VisualDownloadCached.Header -> {
item.totalBytes
}
is VisualDownloadCached.Child -> {
item.totalBytes
}
}
totalSelectedBytes += item.totalBytes
}
_selectedBytes.postValue(totalSelectedBytes)