fix #61, properly show root folder content

This commit is contained in:
tibbi committed 2017-04-24 19:03:54 +02:00
1 parent 9e3207f1bb
commit 333cacfd03
1 file changed
+1 -1
@@ -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)