Hello anyone knows where i can find release change...
# compose
p
Hello anyone knows where i can find release change logs for
org.jetbrains.androidx.navigation:navigation-compose
? After upgrade from
2.9.2
to
2.10.0
i see different behavior of System Navigation Bar when switching from landscape to portrait. I'm not sure if I'm doing something incorrectly or i encountered regression. (Android 11) In
2.9.2
my app started with mine background under Navigation Bar, then i switch to landscape and hide navigation bar, finally i exit landscape and show Navigation Bar -> I have my background ✅ In
2.10.0
my app started with mine background under Navigation Bar, then i switch to landscape and hide navigation bar, finally i exit landscape and show Navigation Bar -> Navigation Bar is white ❌
s
The AndroidX Navigation release notes are here: https://developer.android.com/jetpack/androidx/releases/navigation#2.10.0. JetBrains’ Compose Multiplatform release notes also list which JetBrains Navigation versions are based on which Jetpack versions: https://github.com/JetBrains/compose-multiplatform/releases I haven’t reproduced the navigation-bar change. One thing to check is whether upgrading Navigation also changes the resolved AndroidX Activity or Compose UI versions: comparing Gradle dependencyInsight for the Android runtime classpath in both builds could help isolate that. Does the activity get recreated when you switch orientation, and are you using gesture or three-button navigation?
p
Hello Samyaraj Just to clarify in link that you've sent i see
based on Navigation 2.10.0
Does that mean that for android
org.jetbrains.androidx.navigation:navigation-*:2.10.0
would use
androidx.navigation:navigation-*:2.10.0
(the same code) or there is version of navigation maintained by JetBrains? Thank you for pointing
dependencyInsight
.
org.jetbrains.androidx.navigation:navigation-compose
was the only dependency i explicitly changed but maybe something else upgraded alongside. I'll try to investigate it further. For now I only confirmed that this issue appears on Samsung SM-M526BR with Android 11 (I did not check newer devices nor emulator). The behavior can be seen in attached recordings. Technically I have single activity configured with
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
(in general I wanted to make it live forever but Android likes to make things a bit too complicated compared to iOS :P) The app presents ExoPlayer. When user clicks "full screen" i programmically switch orientation to landscape, hide "three-button navigation" and update layout then when user exits from "full screen" i switch orientation to portrait, show "three-button navigation" and update layout In
2.9.2
under the "three-button navigation" i see content drawn by application. In
2.10.0
it seems like system is controlling "three-button navigation"
s
Hi Paweł, yes — according to the Kotlin documentation, the multiplatform Navigation dependency selects the original AndroidX Navigation artifact for the Android target. JetBrains provides the corresponding artifacts for the other platforms. The release notes list JetBrains Navigation 2.10.0 as based on AndroidX Navigation 2.10.0, but I’d still check dependencyInsight to see exactly what Gradle resolved in your two builds. Thanks for the extra details about the Samsung device and fullscreen flow. I haven’t reproduced that behavior, so I can’t tell yet what caused the navigation-bar change.