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

Send null window when surface gets destroyed #1126

Merged
merged 5 commits into from
May 23, 2022

Conversation

jperedadnr
Copy link
Contributor

Issue

Fixes #1125

Progress

window = ANativeWindow_fromSurface(env, surface);
androidJfx_setNativeWindow(window);
LOGE(stderr, "native setSurface Ready, native window at %p\n", window);
if (surface == NULL) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be surface != NULL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh, great catch!

@jperedadnr jperedadnr merged commit acb987c into gluonhq:master May 23, 2022
@jperedadnr jperedadnr deleted the 1125-blackscreen branch May 23, 2022 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Black screen on Android after bringing back app from to background
3 participants