Anton Dmytryshyn

    Anton Dmytryshyn

    1 year ago
    https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0-alpha07 Got to wait before upgrading to this dependency to use alongside accompanist, despite all the great bug fixes. It doesn't play nice with accompanist AnimatedNavhost(), when trying to use it an error occurs
    java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set
            at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost$lambda-3(AnimatedNavHost.kt:323)
            at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost(AnimatedNavHost.kt:158)
            at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost(AnimatedNavHost.kt:85)
    i

    Ian Lake

    1 year ago
    Yep, you'll need to wait for the next Accompanist build (that depends on alpha07). There's a lot of really nice improvements to the
    AnimatedNavHost
    APIs to look forward to in that release too though
    Anton Dmytryshyn

    Anton Dmytryshyn

    1 year ago
    Looking forward to it! This update solves a huge chunk of navigation bugs my app has been having, so it would be quite nice to finally mark them as solved.
    i

    Ian Lake

    1 year ago