Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Compose BOM version: 2024.12.01.
Jetpack Compose component used: FocusRestorer.
Android Studio Build: Android Studio Ladybug | 2024.2.1.
Kotlin version: 2.0.0.
Problem
When using FocusRestorer inside of a LazyColumn, items are not disposed/recycled anymore because of the PinnedHandle that is used inside of the FocusRestorer.
When I scroll down the 100 items of the sample LazyColumn below, there would be 100 pinned items which can't be removed from the composition.
When looking at the LayoutInspector and scrolling down the LazyColumn, it has 100 Children with the FocusRestorer and 5 without it.
Sample Code Android TV
I into this bug while trying to use the FocusRestorer API.