dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.56k stars 1.61k forks source link

[Android, CollectionView] CV duplicates item after moving #20977

Open maratoss opened 1 month ago

maratoss commented 1 month ago

Description

For some reason CollectionView duplicates item after moving item from code behind with using ObservableCollection.Move

https://github.com/dotnet/maui/assets/1102119/511c45ed-43c3-48a7-9948-430bd7fbb840

https://github.com/dotnet/maui/assets/1102119/390bfea7-43f4-4141-841c-874be6734391


C:\Users\marat>dotnet workload list

Installed Workload Id Manifest Version Installation Source

wasi-experimental 8.0.2/8.0.100 SDK 8.0.200 android 34.0.79/8.0.100 VS 17.10.34607.79, VS 17.9.34616.47 aspire 8.0.0-preview.3.24105.21/8.0.100 VS 17.10.34607.79 maui-windows 8.0.6/8.0.100 VS 17.10.34607.79, VS 17.9.34616.47 maccatalyst 17.2.8022/8.0.100 VS 17.10.34607.79, VS 17.9.34616.47 ios 17.2.8022/8.0.100 VS 17.10.34607.79, VS 17.9.34616.47 wasm-tools 8.0.2/8.0.100 VS 17.9.34616.47

Use dotnet workload search to find additional workloads to install.

C:\Users\marat>dotnet --list-sdks 5.0.408 [C:\Program Files\dotnet\sdk] 6.0.419 [C:\Program Files\dotnet\sdk] 7.0.100-rc.2.22477.23 [C:\Program Files\dotnet\sdk] 7.0.406 [C:\Program Files\dotnet\sdk] 8.0.102 [C:\Program Files\dotnet\sdk] 8.0.200 [C:\Program Files\dotnet\sdk] 8.0.201 [C:\Program Files\dotnet\sdk]

Steps to Reproduce

attached repository to reproduce the problem. reproduced on android emulator and oppo cph2159

Link to public reproduction project repository

https://github.com/maratoss/mauicollectionview

Version with bug

8.0.6 SR1

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

No response

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 month ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 3 weeks ago

Verified this on VS 17.10.0 Preview 2.0(8.0.14). Repro on Android 14.0-API34 with below Project: Codenames.zip