fix #61, properly show root folder content

This commit is contained in:
tibbi 2017-04-24 19:03:54 +02:00
parent 9e3207f1bb
commit 333cacfd03

View File

@ -79,7 +79,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
}
private fun openPath(path: String) {
val realPath = path.trimEnd('/')
val realPath = if (path.length > 1) path.trimEnd('/') else path
breadcrumbs.setBreadcrumb(realPath)
val bundle = Bundle()
bundle.putString(PATH, realPath)