I'm using the ktx function in NavigationExtensions.kt for BottomNavigationView
Everything works great, however when I switch the app to Split-Screen mode and then full screen it again, If BottomNavigationView's selectedItemId is not the first graph, it automatically resets destination to firstGraph while it's icon on BottomNavigationView isn't updated, and after that both of them cannot be clicked.
How can I solve this problem?
I'm using the ktx function in
NavigationExtensions.kt
forBottomNavigationView
Everything works great, however when I switch the app to Split-Screen mode and then full screen it again, IfBottomNavigationView
's selectedItemId is not the first graph, it automatically resets destination to firstGraph while it's icon onBottomNavigationView
isn't updated, and after that both of them cannot be clicked. How can I solve this problem?