From 479c3c6c4e117b7ddd227c67d132e48359391cfb Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 5 Nov 2016 20:50:19 +0100 Subject: [PATCH] ensure there is no duplicate '/' at copy path --- .../com/simplemobiletools/filemanager/dialogs/CopyDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/CopyDialog.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/CopyDialog.kt index b0426948..40f31088 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/CopyDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/dialogs/CopyDialog.kt @@ -22,7 +22,7 @@ class CopyDialog(val activity: Activity, val files: List, val path: String init { val view = LayoutInflater.from(mContext).inflate(R.layout.copy_item, null) - view.source.text = "$path/" + view.source.text = "${path.trimEnd('/')}/" view.destination.setOnClickListener { val config = Config.newInstance(mContext)