ensure there is no duplicate '/' at copy path
This commit is contained in:
parent
ff23ac8da6
commit
479c3c6c4e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue