From 8265905c49b864793688d00b6a1fb134d315e4be Mon Sep 17 00:00:00 2001 From: Braden Cohen Date: Fri, 3 Nov 2023 15:14:42 -0700 Subject: [PATCH] - Fix Android not checking for FlyoutPage ShouldShowToolbarButton when setting the drawer toggle visibility. --- src/Controls/src/Core/NavigationPage/NavigationPageToolbar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controls/src/Core/NavigationPage/NavigationPageToolbar.cs b/src/Controls/src/Core/NavigationPage/NavigationPageToolbar.cs index 6e6305fdab80..854d5bf9c108 100644 --- a/src/Controls/src/Core/NavigationPage/NavigationPageToolbar.cs +++ b/src/Controls/src/Core/NavigationPage/NavigationPageToolbar.cs @@ -151,7 +151,7 @@ void UpdateBackButton() // Set this before BackButtonVisible triggers an update to the handler // This way all useful information is present - if (Parent is FlyoutPage && !anyPagesPushed.Value) + if (Parent is FlyoutPage flyout && flyout.ShouldShowToolbarButton() && !anyPagesPushed.Value) _drawerToggleVisible = true; else _drawerToggleVisible = false;