Assigned
Status Update
Comments
ed...@gmail.com <ed...@gmail.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 16278c75a09262bfc2b1e230730f79ec5a4d4918
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Tue May 25 18:25:16 2021
Do not reset initial scroll position in LazyColumn/Row when items are loaded asynchronously
If the initial scroll position(or restored scroll position) is not 0 this value will be immediately overridden by 0 if there were no items yet provided for LazyColumn/Row.
It is easily reproducible with Paging where we start loading asynchronously and there is always a first frame when we don't have any items.
Fixes: 177245496
Test: new tests for LazyColumn and LazyRow
Change-Id: I95e374fb06dc480aab7b56b8b3cacb92ca1188a9
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyColumnTest.kt
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyRowTest.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListState.kt
https://android-review.googlesource.com/1717757
Branch: androidx-main
commit 16278c75a09262bfc2b1e230730f79ec5a4d4918
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Tue May 25 18:25:16 2021
Do not reset initial scroll position in LazyColumn/Row when items are loaded asynchronously
If the initial scroll position(or restored scroll position) is not 0 this value will be immediately overridden by 0 if there were no items yet provided for LazyColumn/Row.
It is easily reproducible with Paging where we start loading asynchronously and there is always a first frame when we don't have any items.
Fixes: 177245496
Test: new tests for LazyColumn and LazyRow
Change-Id: I95e374fb06dc480aab7b56b8b3cacb92ca1188a9
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyColumnTest.kt
M compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/lazy/LazyRowTest.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListState.kt
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #3
I think this issue still exists. The fix could break easily when you add a header item to LazyColumn.
ch...@google.com <ch...@google.com> #4
Yes, we basically just changed the default behavior for the empty case for now. Please track this bug
ch...@google.com <ch...@google.com> #5
Also, the itemCount always started from 0 when navigated back. I can't identify whether it is really empty or just a temporary state. Especially if I need to show an empty UI, it will flash shortly then display the paging data.
My workaround currently is to keep `LazyPagingItems` object in `ViewModel`, so that `itemCount` and other state will be the same when navigated back.
My workaround currently is to keep `LazyPagingItems` object in `ViewModel`, so that `itemCount` and other state will be the same when navigated back.
Description
What
User experience
What type of Android issue is this?
Slow Performance
What steps would let us observe this issue?
What did you expect to happen?
When I left my house phone (internet) to work the same performance without wiFi
What actually happened?
When I left my house and I was driving (no wifi) I tried using Amazon and the app was slow (internet).
What was the effect of this issue on your device usage, such as lost time or work?
Slight
Additional comments
When I disabled WiFi manually then Amazon (internet speed) worked as expected
When
Time and frequency
Time when bug report was triggered: Apr 3, 2025 5:05 PM GMT-04:00
How often has this happened?
Once
Where
Component
Originating component: <not visible> (1684638)
Build and device data
- Build Number: google/akita_beta/akita:16/BP22.250221.015/13278879:user/release-keys
(Note: It is the build when sending this report. For exact build reference, please see the attached bugreport.)
Debugging information
Google Play services
com.google.android.gms
Version 251036035 (25.10.36 (260400-739992411))
System App (Updated)
Android System WebView
com.google.android.webview
Version 710300443 (136.0.7103.4)
System App (Updated)
Network operator: Google Fi
SIM operator: Google Fi
Filed by Android Beta Feedback. Version (Updated): 2.46-betterbug.external_20241023_RC01 (DOGFOOD)https://developer.android.com/preview/feedback#feedback-app .
To learn more about our feedback process, please visit