diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt index 406eb997d..8210cdbb1 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/AppBottomBar.kt @@ -158,12 +158,10 @@ private fun RowScope.HasNewItemsIcon( nav: (Route, Boolean) -> Unit, ) { val selected = - ( - navEntryState.value - ?.destination - ?.route - ?.indexOf(route.base) ?: -1 - ) > -1 + navEntryState.value + ?.destination + ?.route + ?.startsWith(route.base) ?: false NavigationBarItem( alwaysShowLabel = false,