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

Save debug cache state vs map state #13638

Merged
merged 1 commit into from
Jan 2, 2019
Merged

Save debug cache state vs map state #13638

merged 1 commit into from
Jan 2, 2019

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Dec 21, 2018

While testing #13560. I'm noticing that a fragment can call onSaveInstanceState when it's in the fragment backstack. This means that the view and underlying NativeMapView have already been destroyed and we shouldn't talk to NativeMapView to save state. This PR caches the debug value so it can be restored on orientation change without NativeMapView involvement.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Dec 21, 2018
@tobrun tobrun added this to the android-v7.1.0 milestone Dec 21, 2018
@tobrun tobrun self-assigned this Dec 21, 2018
@tobrun tobrun merged commit 2c19356 into master Jan 2, 2019
@tobrun tobrun deleted the tvn-cache-debug-state branch January 2, 2019 09:20
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.

None yet

2 participants