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] map redrawing on app pause/resume #318

Closed
farfromrefug opened this issue Aug 22, 2019 · 3 comments
Closed

[Android] map redrawing on app pause/resume #318

farfromrefug opened this issue Aug 22, 2019 · 3 comments

Comments

@farfromrefug
Copy link
Contributor

farfromrefug commented Aug 22, 2019

On android if you pause and resume the app, the map gets redrawn. I think actually all map data are destroyed and created again.

Mapbox faced that issue too:
mapbox/mapbox-gl-native#9412

If you run the Mapbox Android demo app you won't see that behavior.

@mtehver
Copy link
Contributor

mtehver commented May 5, 2020

I briefly looked at the MapBox GL issue, but did not really understand the discussion nor code there. Also, I am not seeing the same behavior as in the video when using our AdvancedMap samples.

SDK itself tries to preserve EGL context, but it is really a hint and Android can destroy the context when app has been on background a while. But I am not sure that is really relevant here.

I am currently closing this, could look at this again with actual code sample.

@mtehver mtehver closed this as completed May 5, 2020
@farfromrefug
Copy link
Contributor Author

@mtehver it might be because the sample app does not use fragments.
Trying to create one riht now

@farfromrefug
Copy link
Contributor Author

farfromrefug commented May 5, 2020

@mtehver got a fragment sample running and the issue is not happening. Though it has to be on my side!

Sorry

EDIT: finally found the source of the issue thanks to the sample fragment app!
Sorry to have bothered you with this.

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

No branches or pull requests

2 participants