Skip to content

[Android] CarouselView: VirtualView cannot be null here, when clearing and adding items on second navigation - fix#22207

Merged
PureWeen merged 12 commits intodotnet:mainfrom
kubaflo:fix-22035
May 10, 2024
Merged

[Android] CarouselView: VirtualView cannot be null here, when clearing and adding items on second navigation - fix#22207
PureWeen merged 12 commits intodotnet:mainfrom
kubaflo:fix-22035

Conversation

@kubaflo
Copy link
Copy Markdown
Contributor

@kubaflo kubaflo commented May 3, 2024

Issues Fixed

Fixes #22035

Screen.Recording.2024-05-04.at.01.40.31.mov

@kubaflo kubaflo requested a review from a team as a code owner May 3, 2024 23:41
@kubaflo kubaflo requested review from jsuarezruiz and mattleibow May 3, 2024 23:41
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label May 3, 2024
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

rmarinho
rmarinho previously approved these changes May 6, 2024
@rmarinho
Copy link
Copy Markdown
Member

rmarinho commented May 6, 2024

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@Eilon Eilon added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label May 6, 2024
jsuarezruiz
jsuarezruiz previously approved these changes May 7, 2024
public override string Issue => "[Android] CarouselView: VirtualView cannot be null here, when clearing and adding items on second navigation";

[Test]
public async Task CarouselViewVirtualViewNotNull()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added UITest.


// 2. Tap a Button to load items to the CarouselView.
App.Tap("TestLoadButton");
await Task.Delay(1000);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need these delays?
You could probably wait for something in the CarV to load? Attach an AutomationId to the elements inside the CarV and wait for those?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the delays.

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

rmarinho
rmarinho previously approved these changes May 7, 2024
jsuarezruiz
jsuarezruiz previously approved these changes May 8, 2024
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz jsuarezruiz self-requested a review May 9, 2024 13:10
jsuarezruiz
jsuarezruiz previously approved these changes May 9, 2024
@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

jsuarezruiz
jsuarezruiz previously approved these changes May 10, 2024
mattleibow
mattleibow previously approved these changes May 10, 2024
PureWeen
PureWeen previously approved these changes May 10, 2024
@PureWeen PureWeen dismissed stale reviews from mattleibow, jsuarezruiz, and themself via bc8c905 May 10, 2024 20:42
@PureWeen
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen disabled auto-merge May 10, 2024 23:15
@PureWeen PureWeen merged commit 4bf8af5 into dotnet:main May 10, 2024
@codeinapt
Copy link
Copy Markdown

Good morning, is this adjustment present in version 8.0.5?

@plppp2001
Copy link
Copy Markdown

Good morning, is this adjustment present in version 8.0.5?

8.0.40 SR5

It's in this list for this release.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] CarouselView: VirtualView cannot be null here, when clearing and adding items on second navigation

9 participants