Crash if Navigation.PopAsync in tap command on Android
See original GitHub issueXAML
<Grid xe:TouchEffect.Color="Black"
xe:EffectsConfig.ChildrenInputTransparent="True"
xe:Commands.Tap="{Binding PageNavigationPopCommand}">
C#
PageNavigationPopCommand = new Command(async (dest) =>
{
await Navigation.PopAsync(true);
});
If I write await Task.Delay(500)
before PopAsync, there is no crash.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Xamarin/Tizen: Executing Navigation.PopAsync() crashes ...
The problem is if I call PopAsync() on that third page OR I change the PopToRootAsync() on the second page to a PopAsync()...
Read more >Crashing on Android (Soft Keyboard open while closing)
If you tap the input field to open the soft keyboard, then tap close on the modal (PopupNavigation.Instance.PopAsync(false)), the library ...
Read more >Xamarin.Forms 5.0.0.1931 (5.0.0 Service Release 2) ...
The name also more closely reflects the behavior of the control. ... "[Bug] UWP: PopAsync causes a crash when called from a CollectionView....
Read more >.NET MAUI's Navigation for Beginners - Push, Pop, & Pass ...
NET MAUI Navigation Crash Course using Visual Studio 2022. ... and Up Navigation 11:30 - Passing simple parameters when navigating 16:15 ...
Read more >Let's Override Navigation Bar back button click in Xamarin ...
So as I explained at the beginning we need to override the OnOptionsItemSelected() event in our MainActivity class in order to capture the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in 1.5.0
@FotalGoncharuk sorry, still too busy. Yes, you can add
await Task.Delay(500);
before PopAsync,