Update DownloadViewModel.kt

This commit is contained in:
LagradOst 2021-11-04 11:23:02 +01:00 committed by GitHub
parent 3f1f5894d0
commit 650522993c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -57,8 +57,6 @@ class DownloadViewModel : ViewModel() {
for (c in children) {
val childFile = VideoDownloadManager.getDownloadFileInfoAndUpdateSettings(context, c.id) ?: continue
println("FFFFFFFFFFFFFFFFFFF $childFile")
if (childFile.fileLength <= 1) continue
val len = childFile.totalBytes
val flen = childFile.fileLength
@ -113,6 +111,6 @@ class DownloadViewModel : ViewModel() {
_availableBytes.postValue(localBytesAvailable)
_downloadBytes.postValue(localDownloadedBytes)
_headerCards.postValue(visual.also { println("VISUAL $it") })
_headerCards.postValue(visual)
}
}
}