Moving Items between groups of a Grouped CollectionView in Android throws a IndexOutOfBoundsException #23138
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
fixed-in-8.0.90
fixed-in-9.0.0-rc.2.24503.2
i/regression
This issue described a confirmed regression on a currently supported version
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
p/1
Work that is important, and has been scheduled for release in this or an upcoming sprint
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
See repro. When moving items back and forth in a grouped collectioview in Android a
Java.Lang.IndexOutOfBoundsException has been thrown
Inconsistency detected. Invalid view holder adapter positionTemplatedItemViewHolder{aaacc96 position=7 id=-1, oldPos=5, pLpos:5 scrap [attachedScrap] tmpDetached no parent} crc645d80431ce5f73f11.MauiRecyclerView_3{5d3c385 VFED..... ......I. 0,0-1080,1584}, adapter:crc645d80431ce5f73f11.ReorderableItemsViewAdapter_2@d202cd7, layout:androidx.recyclerview.widget.LinearLayoutManager@c6597f5, context:crc64dcdaa62ceb4aad7f.MainActivity@29e59f2
is thrown.
Steps to Reproduce
In the repro, try to tap on the elements which are moved to the newly created "bucket" group. Then from the "bucket" group try to tap once again to move them back, and the crash should be triggered.
Link to public reproduction project repository
https://github.com/inimirpaz/maui_issues/tree/grouped_cv_issue
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
8.0.3
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: