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
Add better exception if user opens second activity #21492
Conversation
- fix templates to set launch mode to singleTask
singleTask -> SingleTop |
src/Templates/src/templates/maui-mobile/Platforms/Android/MainActivity.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should LaunchMode = LaunchMode.SingleTop
also be set on the blazor template?
Good question Let me check with @Eilon and get some thoughts |
What release has this been merged into? @PureWeen |
8.0.20 |
Description of Change
CreateWindow
which means they are only compatibile with singleTop launchModeConcern
A few people have worked around this issue by overriding
OnPostCreate
and ignoring the exception. This PR will break those people but realistically those users should fix the solution correctly opposed to just swallowing the exception.Issues Fixed
Fixes #18692