Status Update
Comments
ti...@google.com <ti...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
ar...@gmail.com <ar...@gmail.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!
ti...@google.com <ti...@google.com> #4
See screen recording below for the behavior I observed on tip of tree compose code base. I noticed a little sluggishness after clicking "scroll to the end". But no flicker.
Could you clarify what you see on 1.8.0-beta2?
ar...@gmail.com <ar...@gmail.com> #5
ti...@google.com <ti...@google.com>
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
Author: Doris Liu <
Link:
Early terminate animating scroll delta when possible
Expand for full commit details
Early terminate animating scroll delta when possible
When back scroll is necessary in lookahead, we create
an animation to gradually apply the scroll delta to
approach pass to avoid jarring visual jumps.
However, when the lookahead pass and approach pass have
the same measurements for the items, such scroll delta
animation will have no effect. This change specifically
checks for cases where the scroll delta animation
between two passes is redundant and early terminates
the animation.
Test: New test added
Bug: 396169351
Change-Id: I6fa3afde8ef6fff0727246b9f1bf2af29d00a447
Files:
- M
compose/foundation/foundation/integration-tests/lazy-tests/src/androidTest/kotlin/androidx/compose/foundation/lazy/list/LazyListTest.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListState.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutScrollDeltaBetweenPasses.kt
Hash: cc84442bcaa03b8f53df46f6b95af0a44c21b0fc
Date: Tue Feb 18 15:49:13 2025
Description
Jetpack Compose component used: SharedTransitionLayout and LazyColumn
Android Studio Build:Android Studio Ladybug Feature Drop | 2024.2.2
Kotlin version:2.0.0
Steps to Reproduce or Code Sample to Reproduce:
1.Open the application and press the "Scroll to end" button.
2.Start scrolling up
3.And when the last item in the list disappears, an animation bug occurs—flickering.
This bug occurs when using `SharedTransitionLayout` with a `LazyColumn` inside. The issue appears when `animateScrollToItem()` is called in `LazyColumn` to scroll to the last item, followed by manual scrolling. At the moment when the last item in the list disappears, flickering occurs.
This issue does not occur without `SharedTransitionLayout`.