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

Android - Defer rendering till surface is created #16616

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

emmauss
Copy link
Contributor

@emmauss emmauss commented Aug 7, 2024

What does the pull request do?

Fixes #16588 . For some reason, the Orientation and ScreenSize config change flags aren't being applied, even when set. This pr makes recreation of the activity safer, by deferring the start of the rendering session till after the view surface is created. This fixes issues where the app is started while the device is in a state where activities aren't visible, like in sleep/stand by, and when a config change forces the activity to be recreated, like in the linked pr.

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #16588

@emmauss emmauss requested a review from maxkatz6 August 7, 2024 12:37
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051068-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051101-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@emmauss emmauss force-pushed the android_fix_surface_creation branch from 4518003 to f12cc8a Compare August 12, 2024 07:35
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051169-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Aug 13, 2024
Merged via the queue into master with commit 98e60e8 Aug 13, 2024
11 checks passed
@maxkatz6 maxkatz6 deleted the android_fix_surface_creation branch August 13, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android screen rotation causes crash
3 participants