-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Shell.Current.FlyoutIsPresented = true does not toggle the first time on Android #8226
Comments
Also, |
verified repro on android with above project: |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Came across this issue too. It seems like a serious bug to me. I trust the team can fix it quickly :-) |
has anyone found a workaround yet ? |
@ViniciusAugustoRR ,
|
it worked, thanks a lot |
That's very helpful, but I had to guarantee that those statements are executed exactly once. #if ANDROID
if (!_alreadyOpen)
{
Shell.Current.FlyoutBehavior = FlyoutBehavior.Locked;
Shell.Current.FlyoutBehavior = FlyoutBehavior.Flyout;
_alreadyOpen = true;
}
#endif
Shell.Current.FlyoutIsPresented = !Shell.Current.FlyoutIsPresented; EditI added |
I figured something similar to this, just less fancy lol (Used a counter instead of a bool :P), but thanks for the tip ! |
Verified this on Visual Studio Enterprise 17.7.0 Preview 1.0. Repro on Android 13.0 with below Project: |
Still happen with newest .net8 preview ... In my app i use an own action button placed in the top right of the navigation bar instead of the typical flyout burger menu in the top left. This is my workaround for now: `
#elif IOS
#endif |
Description
Shell.Current.FlyoutIsPresented inside a button click event handler toggles flyout only after flyout was manually swiped one time.
Steps to Reproduce
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
No response
Relevant log output
No response
MauiApp7.zip
The text was updated successfully, but these errors were encountered: