Skip to content

Commit

Permalink
Fix bottom bar icon not enabling
Browse files Browse the repository at this point in the history
  • Loading branch information
daniebeler committed Feb 1, 2025
1 parent 9ef49fe commit d2db615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/daniebeler/pfpixelix/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ fun BottomBar(
contentDescription = "long press to switch account"
)
}
} else if (currentRoute == screen.route) {
} else if (currentRoute?.startsWith(screen.route) == true) {
Icon(
imageVector = ImageVector.vectorResource(screen.activeIcon),
modifier = Modifier.size(30.dp),
Expand Down

0 comments on commit d2db615

Please sign in to comment.