Flyout page in Android does not show flyout button (burger) consistently #24468
Labels
area-navigation
NavigationPage
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
The condition to show the flyout button (burger) or not is set in method ShouldShowToolbarButton of the FlyoutPage.
In Android, this method is not hit when orientation changes. This method is only called once during initialization.
Test is done with a physical Android tablet running MAUI 8.0.90-dev.
Under iOS, rotation of an iPad triggers correctly method ShouldShowToolbarButton.
The default code of ShouldShowToolbarButton of depends on the orientation. It’s inconsistent not to trigger this code after rotation.
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
8.0.80 SR8
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12.0
Did you find any workaround?
Modification of source code in Maui-main\src\Controls\src\Core\NavigationPage\NavigationPageToolbar.cs
Relevant log output
No response
The text was updated successfully, but these errors were encountered: