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

Remove unnecessary camera callbacks loops #12973

Merged
merged 2 commits into from
Sep 26, 2018

Conversation

LukasPaczos
Copy link
Contributor

@LukasPaczos LukasPaczos commented Sep 26, 2018

Closes #12260.

This PR eliminates the unnecessary canceled->idle->started camera callback loops that occurred during gestures execution by clearing the message queue when movement is restarted and by dispatching cancel callback only during the start of first gesture execution and idle only during the finish of last.

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Sep 26, 2018
@LukasPaczos LukasPaczos added this to the android-v6.6.0 milestone Sep 26, 2018
@LukasPaczos LukasPaczos force-pushed the 12260-camera-callbacks-frequency branch from df30811 to d1e9a99 Compare September 26, 2018 08:52
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.

Did some manual testing and looks great :shipit:

@LukasPaczos LukasPaczos merged commit 84082e2 into master Sep 26, 2018
@LukasPaczos LukasPaczos deleted the 12260-camera-callbacks-frequency branch September 26, 2018 09:38
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