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

Clear camera callbacks' message queue when the map is destroyed #14292

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

LukasPaczos
Copy link
Member

Closes #14020.

We are dispatching our own camera callbacks when using Android Animators, and even though we are canceling those correctly, we can run into a situation where there are already callbacks scheduled when the map is being destroyed.

This PR also fixes the formatting of the MapboxMapTest.kt file.

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Apr 2, 2019
@LukasPaczos LukasPaczos added this to the release-m milestone Apr 2, 2019
@LukasPaczos LukasPaczos requested a review from tobrun April 2, 2019 08:53
Copy link
Member

@tobrun tobrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@LukasPaczos LukasPaczos force-pushed the lp-camera-callbacks-after-destroyed-14020 branch from 39c5c8e to d049d68 Compare April 2, 2019 08:57
@LukasPaczos LukasPaczos merged commit 463a6b2 into master Apr 2, 2019
@LukasPaczos LukasPaczos deleted the lp-camera-callbacks-after-destroyed-14020 branch April 2, 2019 12:14
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 on rotation when camera tracking is active
2 participants