ensure there is no duplicate '/' at copy path

This commit is contained in:
tibbi 2016-11-05 20:50:19 +01:00
parent ff23ac8da6
commit 479c3c6c4e
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class CopyDialog(val activity: Activity, val files: List<File>, val path: String
init { init {
val view = LayoutInflater.from(mContext).inflate(R.layout.copy_item, null) val view = LayoutInflater.from(mContext).inflate(R.layout.copy_item, null)
view.source.text = "$path/" view.source.text = "${path.trimEnd('/')}/"
view.destination.setOnClickListener { view.destination.setOnClickListener {
val config = Config.newInstance(mContext) val config = Config.newInstance(mContext)