diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/CopyDialog.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/CopyDialog.kt index d2d83e2ce..2e07314db 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/CopyDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/dialogs/CopyDialog.kt @@ -23,8 +23,6 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList, val c val sourcePath = files[0].parent.trimEnd('/') var destinationPath = "" - view.source.text = activity.humanizePath(sourcePath) - view.destination.setOnClickListener { PickAlbumDialog(activity) { destinationPath = it @@ -43,7 +41,7 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList, val c return@setOnClickListener } - if (view.source.text.trimEnd('/') == destinationPath.trimEnd('/')) { + if (sourcePath.trimEnd('/') == destinationPath.trimEnd('/')) { context.toast(R.string.source_and_destination_same) return@setOnClickListener } diff --git a/app/src/main/res/layout/dialog_copy_move.xml b/app/src/main/res/layout/dialog_copy_move.xml index 8caf702c0..469532a9f 100644 --- a/app/src/main/res/layout/dialog_copy_move.xml +++ b/app/src/main/res/layout/dialog_copy_move.xml @@ -9,22 +9,6 @@ android:paddingRight="@dimen/activity_margin" android:paddingTop="@dimen/activity_margin"> - - - -