diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt index 036272dfa..2e09b1921 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt @@ -40,6 +40,11 @@ class RenameDirectoryDialog(val activity: SimpleActivity, val dir: File, val lis updatedFiles.add(dir.absolutePath) val newDir = File(dir.parent, newDirName) + if (newDir.exists()) { + context.toast(R.string.rename_folder_exists) + return@setOnClickListener + } + if (context.needsStupidWritePermissions(dir.absolutePath)) { if (activity.isShowingPermDialog(dir)) return@setOnClickListener diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 3aa3eff8a..c327681c1 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -15,6 +15,7 @@ Konnte die Datei nicht umbenennen Konnte den Ordner nicht umbenennen Ordnername darf nicht leer sein + A folder with that name already exists Ordner erfolgreich umbenannt Benenne Ordner um Dateiname darf nicht leer sein diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 78b6bc5c5..5afbc5261 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -15,6 +15,7 @@ No se pudo renombrar el archivo No se pudo renombrar la carpeta El nombre de carpeta no puede estar vacío + A folder with that name already exists Carpeta renombrada correctamente Renombrando carpeta El nombre de archivo no puede estar vacío diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 267edc6fb..f4d4d1135 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -15,6 +15,7 @@ Impossibile rinominare il file Impossibile rinominare la cartella Il nome della cartella non deve essere vuoto + A folder with that name already exists Cartella rinominata correttamente Rinominazione cartella Il nome del file non deve essere vuoto diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 8adab01c0..f52d9507e 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -15,6 +15,7 @@ ファイルの名前を変更できませんでした フォルダーの名前を変更できませんでした フォルダー名は空にできません + A folder with that name already exists フォルダーの名前を正常に変更しました フォルダーの名前を変更中 ファイル名は空にできません diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index 7a7b4e29b..3fc2acf6f 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -15,6 +15,7 @@ Não foi possível renomear o ficheiro Não foi possível renomear a pasta O nome da pasta não pode estar vazio + A folder with that name already exists A pasta foi renomeada com sucesso A renomear pasta O nome do ficheiro não pode estar vazio diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index 8cd94a06d..d5f86d17c 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -15,6 +15,7 @@ Det gick inte att döpa om filen Det gick inte att döpa om mappen Du måste ange ett mappnamn + A folder with that name already exists Mappen döptes om Döper om mappen Du måste ange ett filnamn diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index 3f40ecd82..a08602d3f 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -15,6 +15,7 @@ 文件不能重命名 重命名文件夹 文件夹名不能为空 + A folder with that name already exists 文件夹不能重命名 文件夹重命名成功 重命名中.. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 16060633e..e1c084cef 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -15,6 +15,7 @@ Could not rename the file Could not rename the folder Folder name must not be empty + A folder with that name already exists Folder renamed successfully Renaming folder Filename cannot be empty