Assigned
Status Update
Comments
ti...@google.com <ti...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
ti...@google.com <ti...@google.com> #3
Ok, after trying a couple more versions, realized this is a duplicate of
From the release notes:
AndroidView's update callback's first invocation will now be defered until the view is attached, instead of running when the composition that introduces the AndroidView is applied. This fixes a bug where the update callback wouldn't be invalidated if a state it read was changed immediately by an effect. (Ie9438,
) b/291094055
Sorry for the confusion!
xu...@gmail.com <xu...@gmail.com> #4
Thanks for replying. I have noticed that same keys causes the glitch.
Description
Jetpack Compose version: 1.7.5
Android Studio Build: #AI-242.23339.11.2422.12584204
Kotlin version: 2.0.21
I am using
SharedTransition
to transition a image inHorizontalMultiBrowseCarousel
at one page to another page. I found that usingsharedElements
orsharedBounds
in carousel will cause carousel render glitched.Here is simplified code.
NavigationPage
MainPage
SecondPage
If I comment
sharedElement
modifier inMainPage
, the carousel works well without transition animation.But when I add this modifier, the carousel glitches and can't even show items.
I have noticed that the transition animation also worked while carousel is glitching. But it behaves like I am using a normal horizontal scroll list.
I have create a repository with minimal reproducible example project. Please visithttps://github.com/StageGuard/JetpackCompose-Bug-CarouselWithSharedTransition to get the code.