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

Register compass sensor listener only if necessary #13573

Merged
merged 1 commit into from
Dec 13, 2018

Conversation

LukasPaczos
Copy link
Contributor

Register compass sensor listener only if provided data is consumed by the location layer or location camera. The idea here is to remove the overhead of creating new compass animators when they are ultimately ignored.

/cc @BharathMG

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Dec 13, 2018
@LukasPaczos LukasPaczos added this to the android-v6.8.0 milestone Dec 13, 2018
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:, thank you for all the tests

@LukasPaczos LukasPaczos force-pushed the lp-activate-compass-only-when-consumed branch from 9c40a3e to 86f0f46 Compare December 13, 2018 12:43
Copy link
Contributor

@danesfeder danesfeder left a comment

Choose a reason for hiding this comment

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

@LukasPaczos great optimization, LGTM thanks!

…onsumed by the location layer or location camera
@LukasPaczos LukasPaczos force-pushed the lp-activate-compass-only-when-consumed branch from 86f0f46 to 8b53198 Compare December 13, 2018 13:55
@LukasPaczos LukasPaczos merged commit 1d410c9 into master Dec 13, 2018
@LukasPaczos LukasPaczos deleted the lp-activate-compass-only-when-consumed branch December 13, 2018 16:44
@BharathMG
Copy link
Contributor

@LukasPaczos Awesome!

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.

4 participants