Xamarin.Forms
Xamarin.Forms copied to clipboard
[Android] Fix processing push and pop operations before attached to window
Description of Change
If the user triggers push/pop operations before the navigation renderer has been made consistent with the Navigation.Pages then those push/pop operations will leave the NavigationRenderer in a confused state.
If a user issues a pop before the NavigationRenderer has updated to match the current page stack queue then these changes just ignore the pop. There's no reason to process a pop if no fragments have been pushed
If the user issues a push this will force the NavigationRenderer to become consistent with the Navigation.Pages
Issues Resolved
- fixes #11909
Platforms Affected
- Android
Testing Procedure
- tests included
PR Checklist
- [ ] Targets the correct branch
- [ ] Tests are passing (or failures are unrelated)