trim a slash from current path when going Back at the filepicker dialog

This commit is contained in:
tibbi 2018-11-19 12:18:10 +01:00
parent 1df4b792fd
commit 853c79d138

View file

@ -67,7 +67,7 @@ class FilePickerDialog(val activity: BaseSimpleActivity,
val breadcrumbs = mDialogView.filepicker_breadcrumbs
if (breadcrumbs.childCount > 1) {
breadcrumbs.removeBreadcrumb()
currPath = breadcrumbs.getLastItem().path
currPath = breadcrumbs.getLastItem().path.trimEnd('/')
tryUpdateItems()
} else {
mDialog.dismiss()