remove the Source field from the copy dialog

This commit is contained in:
tibbi 2017-01-16 20:45:07 +01:00
parent f6aecb62c0
commit e13a37edf9
2 changed files with 1 additions and 19 deletions

View file

@ -23,8 +23,6 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
val sourcePath = files[0].parent.trimEnd('/') val sourcePath = files[0].parent.trimEnd('/')
var destinationPath = "" var destinationPath = ""
view.source.text = activity.humanizePath(sourcePath)
view.destination.setOnClickListener { view.destination.setOnClickListener {
PickAlbumDialog(activity) { PickAlbumDialog(activity) {
destinationPath = it destinationPath = it
@ -43,7 +41,7 @@ class CopyDialog(val activity: SimpleActivity, val files: ArrayList<File>, val c
return@setOnClickListener return@setOnClickListener
} }
if (view.source.text.trimEnd('/') == destinationPath.trimEnd('/')) { if (sourcePath.trimEnd('/') == destinationPath.trimEnd('/')) {
context.toast(R.string.source_and_destination_same) context.toast(R.string.source_and_destination_same)
return@setOnClickListener return@setOnClickListener
} }

View file

@ -9,22 +9,6 @@
android:paddingRight="@dimen/activity_margin" android:paddingRight="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin"> android:paddingTop="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/source_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/source"
android:textSize="@dimen/smaller_text_size"/>
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/source"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_margin"
android:layout_marginLeft="@dimen/activity_margin"
android:paddingRight="@dimen/small_margin"
android:paddingTop="@dimen/small_margin"/>
<com.simplemobiletools.commons.views.MyTextView <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/destination_label" android:id="@+id/destination_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"