mirror of
https://github.com/nextcloud/android.git
synced 2024-12-20 16:02:01 +03:00
fix isDownloading logic
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
d4d7f60f2c
commit
805858aa78
1 changed files with 4 additions and 5 deletions
|
@ -47,11 +47,10 @@ class FileDownloadHelper {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return if (file.isFolder) {
|
return FileDownloadWorker.isDownloading(
|
||||||
SyncWorker.isDownloading(file.decryptedRemotePath)
|
user.accountName,
|
||||||
} else {
|
file.fileId
|
||||||
FileDownloadWorker.isDownloading(user.accountName, file.fileId)
|
) || SyncWorker.isDownloading(file.decryptedRemotePath)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun cancelPendingOrCurrentDownloads(user: User?, files: List<OCFile>?) {
|
fun cancelPendingOrCurrentDownloads(user: User?, files: List<OCFile>?) {
|
||||||
|
|
Loading…
Reference in a new issue