diff --git a/app/src/main/java/com/nextcloud/client/jobs/upload/UploadNotificationManager.kt b/app/src/main/java/com/nextcloud/client/jobs/upload/UploadNotificationManager.kt index 15fb0f9948..bade8ed798 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/upload/UploadNotificationManager.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/upload/UploadNotificationManager.kt @@ -32,7 +32,16 @@ class UploadNotificationManager(private val context: Context, viewThemeUtils: Vi currentUploadIndex: Int, totalUploadSize: Int ) { - currentOperationTitle = "$currentUploadIndex / $totalUploadSize - ${uploadFileOperation.fileName}" + currentOperationTitle = if (totalUploadSize > 1) { + String.format( + context.getString(R.string.upload_notification_manager_start_text), + currentUploadIndex, + totalUploadSize, + uploadFileOperation.fileName + ) + } else { + uploadFileOperation.fileName + } val progressText = String.format( context.getString(R.string.upload_notification_manager_upload_in_progress_text), diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 002ac5a95f..f0b93bdd5f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -223,6 +223,7 @@ Upload from… Folder name + %1$d / %2$d - %3$s %1$d%% Uploading…