Skip to content

SwipeItems referencing causes crash on Android. #18429

@DxsSucuk

Description

@DxsSucuk

Description

When trying to parse SwipeItems via BindableProperty to a UI Element within a CollectionView it crashes on Android after trying to swipe a second Element.

Steps to Reproduce

  1. Create a MAUI Project.
  2. Make a CollectionView with a Itemtemplate which has a SwipeView.
  3. Make a variable of the typ SwipeItems
  4. Bind that variable to either LeftSwipeItems or RightSwipeItems
  5. Try sliding a entry to the side.
  6. Try sliding another one to the side, without sliding the previous one back.
  7. Observe Java IllegalArgument!

Link to public reproduction project repository

https://github.com/DxsSucuk/Maui.DataGrid/tree/feature/swipeItem

Version with bug

7.0.96

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 12

Did you find any workaround?

Adding the SwipeItems in the Datatemplate, but that is not a actual solution since it stops any flexability.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions