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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user