Skip to content
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

FlyoutIsPresented is not working on Android #20779

Closed
bhuwancb99 opened this issue Feb 22, 2024 · 6 comments
Closed

FlyoutIsPresented is not working on Android #20779

bhuwancb99 opened this issue Feb 22, 2024 · 6 comments
Labels
area-controls-flyout Flyout platform/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@bhuwancb99
Copy link

Description

In .NET MAUI, within the AppShell, when 'Shell.NavBarIsVisible' is set to 'False', and a button is clicked on any page, triggering the code 'Shell.Current.FlyoutIsPresented = !Shell.Current.FlyoutIsPresented;' in the code-behind, it does not function as expected on Android. However, it works as intended on iOS. Interestingly, the same implementation in the previous version for Xamarin.Forms was successful. Note: Upon clicking the button, the Hamburger menu does not open. However, after clicking the button for the first time, subsequently clicking any of the tab bar icons does open the menu.

Steps to Reproduce

i am downloaded code for this URL -https://github.com/dotnet/maui-samples/tree/main/8.0/Fundamentals/Shell

and added one line in AppShell-'Shell.NavBarIsVisible="False"' added button in CatsPage.xaml file-

button event
private void Button_Clicked(object sender, EventArgs e) { Shell.Current.FlyoutIsPresented = !Shell.Current.FlyoutIsPresented; }
image (1)
image

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/8.0/Fundamentals/Shell

Version with bug

8.0.7 SR2

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 14

Did you find any workaround?

No response

Relevant log output

No response

@bhuwancb99 bhuwancb99 added the t/bug Something isn't working label Feb 22, 2024
@PureWeen
Copy link
Member

Can you test with the latest nightly build?
https://github.com/dotnet/maui/wiki/Nightly-Builds

@PureWeen PureWeen added the s/needs-info Issue needs more info from the author label Feb 22, 2024
@ghost
Copy link

ghost commented Feb 22, 2024

Hi @bhuwancb99. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@bhuwancb99
Copy link
Author

hi @PureWeen - i can't understand your question. can you please explain more.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Feb 22, 2024
@PureWeen
Copy link
Member

@bhuwancb99 I'm pretty sure this will be fixed by SR3

You can test if it's going to be fixed by updating to our nightly nugets as is described here
https://github.com/dotnet/maui/wiki/Nightly-Builds

@PureWeen PureWeen added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Feb 22, 2024
@ghost
Copy link

ghost commented Feb 22, 2024

Hi @bhuwancb99. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@bhuwancb99
Copy link
Author

@PureWeen thanks now it's working after update.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Feb 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-flyout Flyout platform/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants