make the path at Favorite path picker nicer

This commit is contained in:
tibbi 2021-01-23 18:36:28 +01:00
parent c8e104d88d
commit 65bbe0602a

View file

@ -273,7 +273,8 @@ class MainActivity : SimpleActivity() {
var currFavoriteIndex = -1
favorites.forEachIndexed { index, path ->
items.add(RadioItem(index, path, path))
val visiblePath = humanizePath(path).replace("/", " / ")
items.add(RadioItem(index, visiblePath, path))
if (path == fragment.currentPath) {
currFavoriteIndex = index
}