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 3ed3d39d4..55b2a15b3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameDirectoryDialog.kt @@ -4,6 +4,7 @@ import android.app.Activity import android.support.v7.app.AlertDialog import android.view.LayoutInflater import android.view.WindowManager +import com.simplemobiletools.filepicker.extensions.humanizePath import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.Utils import com.simplemobiletools.gallery.extensions.toast @@ -19,7 +20,7 @@ class RenameDirectoryDialog(val activity: Activity, val dir: File, val listener: val view = LayoutInflater.from(context).inflate(R.layout.rename_directory, null) view.directory_name.setText(dir.name) - view.directory_path.text = "${dir.parent}/" + view.directory_path.text = "${context.humanizePath(dir.parent)}/" AlertDialog.Builder(context) .setTitle(context.resources.getString(R.string.rename_folder)) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameFileDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameFileDialog.kt index fe35b1f1f..9c880eeac 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameFileDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/RenameFileDialog.kt @@ -5,6 +5,7 @@ import android.media.MediaScannerConnection import android.support.v7.app.AlertDialog import android.view.LayoutInflater import android.view.WindowManager +import com.simplemobiletools.filepicker.extensions.humanizePath import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.Utils import com.simplemobiletools.gallery.extensions.toast @@ -28,7 +29,7 @@ class RenameFileDialog(val activity: Activity, val file: File, val listener: OnR } view.file_name.setText(name) - view.file_path.text = "${file.parent}/" + view.file_path.text = "${context.humanizePath(file.parent)}/" AlertDialog.Builder(context) .setTitle(context.resources.getString(R.string.rename_file))