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

Don't save state if map hasn't been initialised #10320

Merged
merged 1 commit into from
Oct 30, 2017

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Oct 30, 2017

With migration to GLSurfaceView we are also waiting for the view to be measured before creating the map object. It's possible that the user destroys the map before the map was fully created. With current codebase this can result in a crash.

cc @danesfeder

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Oct 30, 2017
@tobrun tobrun added this to the android-v5.2.0 milestone Oct 30, 2017
@tobrun tobrun self-assigned this Oct 30, 2017
@tobrun tobrun requested a review from danesfeder October 30, 2017 19:59
@tobrun tobrun changed the title Don't save state if map has been innitialised Don't save state if map hasn't been initialised Oct 30, 2017
@tobrun tobrun merged commit b8d5798 into release-agua Oct 30, 2017
@tobrun tobrun deleted the tvn-recreate-crash branch October 30, 2017 20:00
@tobrun tobrun mentioned this pull request Nov 3, 2017
21 tasks
This was referenced Nov 14, 2017
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.

2 participants