You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a StackOverflow question about this issue?
I have searched StackOverflow
What happened?
When opening the search from any backstack, the highlighting of the navigation bar items is gone.
This issue is caused by usage of Destination.hierarchy for highlighting the bottom items.
Currently there is a Library-Restricted field NavHost.currentBackStack, which could be used instead.
Other than that highlighting of global destinations is not really possible, as far as I tried it.
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
When opening the search from any backstack, the highlighting of the navigation bar items is gone.
This issue is caused by usage of Destination.hierarchy for highlighting the bottom items.
Currently there is a Library-Restricted field NavHost.currentBackStack, which could be used instead.
Other than that highlighting of global destinations is not really possible, as far as I tried it.
I also found additional sources here:
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:navigation/navigation-runtime/src/main/java/androidx/navigation/NavController.kt;drc=a35c4229c9b7643b15fcd5ddd0d81a7d9abbba4f;l=114
https://issuetracker.google.com/issues/308334893
I also already pinged Ian Lake, to get some answers on why this field is not public API and what would be his suggestion.
https://twitter.com/JPtaszyk/status/1777602817336684829
Relevant logcat output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: