Open softlion opened 3 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I can also repro this error message on the ManualMauiTests demo app (MAUI Version 8.0.70): Lanuch App -> Open I CollectionView -> I9Scrolling -> Incremental loading on scroll -> Check the debug output: [RecyclerView] Cannot call this method in a scroll callback. Scroll callbacks mightbe run during a measure & layout pass where you cannot change theRecyclerView data. Any method call that might change the structureof the RecyclerView or the adapter contents should be postponed tothe next frame. [RecyclerView] java.lang.IllegalStateException: crc645d80431ce5f73f11.MauiRecyclerView_3{e4f97e VFED..... ......ID 0,156-970,1874}, adapter:crc645d80431ce5f73f11.ReorderableItemsViewAdapter2@942d7eb, layout:androidx.recyclerview.widget.LinearLayoutManager@794e8a9, context:crc64126babe5824faebc.MainActivity@bf5663 [RecyclerView] at androidx.recyclerview.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:3451) ...
Description
Create a CollectionView and bind it to an ObservableCollection filled with enough items so that the CollectionView can be scrolled. Use the UI to scroll down. Then, tap on a button that triggers the deletion of the content of the ObservableCollection and fills it with new items. Finally, programmatically scroll to the top of the CollectionView.
This is working, but triggers scary warnings.
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android API 34
Did you find any workaround?
no
Relevant log output