diff --git a/app/src/main/java/com/nextcloud/client/jobs/download/FileDownloadHelper.kt b/app/src/main/java/com/nextcloud/client/jobs/download/FileDownloadHelper.kt index 75e10efcaa..3e231124ae 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/download/FileDownloadHelper.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/download/FileDownloadHelper.kt @@ -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?) {