diff --git a/app/src/main/java/de/felixnuesse/extract/notifications/implementations/DownloadWorkerNotification.kt b/app/src/main/java/de/felixnuesse/extract/notifications/implementations/DownloadWorkerNotification.kt index 0cb5a06e..21352873 100644 --- a/app/src/main/java/de/felixnuesse/extract/notifications/implementations/DownloadWorkerNotification.kt +++ b/app/src/main/java/de/felixnuesse/extract/notifications/implementations/DownloadWorkerNotification.kt @@ -33,8 +33,8 @@ class DownloadWorkerNotification(var context: Context) : WorkerNotification(cont override fun generateSuccessMessage(statusObject: StatusObject, fileItem: FileItem): String { val transfers = statusObject.getTotalTransfers() - val message = if (transfers <= 1) { - statusObject.getTotalTransfers().toString() + val message = if (transfers <= 1 && !fileItem.isDir) { + statusObject.getTransfers().toString() } else { fileItem.name } diff --git a/app/src/main/java/de/felixnuesse/extract/notifications/implementations/UploadWorkerNotification.kt b/app/src/main/java/de/felixnuesse/extract/notifications/implementations/UploadWorkerNotification.kt index c8e094dc..b09111eb 100644 --- a/app/src/main/java/de/felixnuesse/extract/notifications/implementations/UploadWorkerNotification.kt +++ b/app/src/main/java/de/felixnuesse/extract/notifications/implementations/UploadWorkerNotification.kt @@ -30,8 +30,8 @@ class UploadWorkerNotification(var context: Context) : WorkerNotification(contex override fun generateSuccessMessage(statusObject: StatusObject, fileItem: FileItem): String { val transfers = statusObject.getTotalTransfers() - val message = if (transfers <= 1) { - statusObject.getTotalTransfers().toString() + val message = if (transfers <= 1 && !fileItem.isDir) { + statusObject.getTransfers().toString() } else { fileItem.name }