Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Query when renderer is being recreated #14395

Merged
merged 4 commits into from
Apr 12, 2019
Merged

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Apr 11, 2019

Closes #14394, this PR hardens querying the map when the underlying surface is being recreated. With 7.3.0, we changed the lifespan of the renderer to match the surface (instead of the MapView). This change resulted in that the API found on our core renderer isn't usable directly after resuming an Activity. Checking if we have a surface solves that but this is something we need to revisit in the long run in a cleaner way.

This PR adds a regression test, additional javadoc explaining the issue and the actual fix.

cc @Guardiola31337

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Apr 11, 2019
@tobrun tobrun added this to the release-mojito milestone Apr 11, 2019
@tobrun tobrun requested a review from LukasPaczos April 11, 2019 10:54
@tobrun tobrun self-assigned this Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when calling MapboxMap#query when activity is restarted
2 participants