-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix iOS] Fix CarouselViewLoopNoFreeze so that it's passing on both CV1 and CV2 sets of handlers #26053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -302,7 +302,7 @@ void CarouselViewScrolled(object sender, ItemsViewScrolledEventArgs e) | |||
[UnconditionalSuppressMessage("Memory", "MEM0003", Justification = "Proven safe in test: MemoryTests.HandlerDoesNotLeak")] | |||
void CollectionViewUpdating(object sender, NotifyCollectionChangedEventArgs e) | |||
{ | |||
if (ItemsView is not CarouselView carousel) | |||
if (ItemsSource.ItemCount == 0 || ItemsView is not CarouselView carousel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you include an UITest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you include an UITest?
Hi @jsuarezruiz
The test case for this scenario is already present. I have updated it to use the default CarouselView instead of CarouselView2.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Issue Details
Root cause:
Issue12574Test
RemoveItemsQuickly
Description Changes:
Issue12574Test
RemoveItemsQuickly
Validated the behaviour in the following platforms
Fixes #25775
Output:
Issue12574Test
ViewHanlder1.mp4
CV1Updated.mp4
RemoveItemsQuickly
Before changes
AfterChanges.mp4