Skip to content

[iOS] Fixing #28912 by only hiding context buttons when user already stopped dragging the cell #28914

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

VitalyKnyazev
Copy link
Contributor

@VitalyKnyazev VitalyKnyazev commented Apr 10, 2025

Description of Change

Fixing #28912 by only hiding context buttons when user already stopped dragging the cell.
Also first commit fixes potential NRE.

Issues Fixed

Fixes #28912

@VitalyKnyazev VitalyKnyazev requested a review from a team as a code owner April 10, 2025 13:56
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Apr 10, 2025
@VitalyKnyazev VitalyKnyazev reopened this Apr 10, 2025
@rmarinho rmarinho added this to the .NET 9 SR7 milestone Apr 11, 2025
@rmarinho rmarinho moved this from Todo to Ready To Review in MAUI SDK Ongoing Apr 11, 2025
@rmarinho rmarinho requested a review from jsuarezruiz April 11, 2025 11:41
@VitalyKnyazev VitalyKnyazev changed the title [iOS] Fixing #28912 by only hiding context buttons if user ever swiped left [iOS] Fixing #28912 by only hiding context buttons when user stopped dragging the cell Apr 11, 2025
@VitalyKnyazev VitalyKnyazev changed the title [iOS] Fixing #28912 by only hiding context buttons when user stopped dragging the cell [iOS] Fixing #28912 by only hiding context buttons when user already stopped dragging the cell Apr 11, 2025
@@ -1655,7 +1655,7 @@ void UpdateNavigationBarVisibility(bool animated)
return;

var hasNavBar = NavigationPage.GetHasNavigationBar(current);
if (!_navigation.TryGetTarget(out NavigationRenderer navigationRenderer))
if (_navigation.TryGetTarget(out NavigationRenderer navigationRenderer))
Copy link
Contributor

Choose a reason for hiding this comment

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

While can understand the changes in the ContextScrollViewDelegate class, I think need more context here? why are you changing this condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes this change is not related to the main issue, but it is clearly a copy/paste bug and can cause NRE in the next line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Happy to roll back this one if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-navigation NavigationPage community ✨ Community Contribution platform/iOS 🍎
Projects
Status: Ready To Review
Development

Successfully merging this pull request may close these issues.

[iOS] ListView Cell with ContextActions may not show buttons sometimes
3 participants