android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.4k stars 8.29k forks source link

[NavigationAdvancedSample] NavigationExtensions state bug when switching to split-screen mode (multi screen window) #936

Open TurKurT656 opened 3 years ago

TurKurT656 commented 3 years ago

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?

joaoeudes7 commented 2 years ago

Any way to solve this problem? Stopped working after version 2.3.5