Fix(Navigation): Fixed the bug that can not higlight store navigation icon

Fixed the bug that the store navigation icon cannot be automatically highlighted when switching to the ToolStore page.
This commit is contained in:
2024-08-16 14:13:55 +08:00
parent 0c6baba099
commit 3a6fb2a6f0
2 changed files with 5 additions and 1 deletions

View File

@@ -252,5 +252,5 @@ private fun OxygenNavRail(
private fun NavDestination?.isTopLevelDestinationInHierarchy(destination: TopLevelDestination) =
this?.hierarchy?.any {
it.route?.contains(destination.name, true) ?: false
it.route?.equals(destination.route) ?: false
} ?: false