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