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

Tracking seems to be broken in 8.1.0 #15107

Closed
Etienne-io opened this issue Jul 12, 2019 · 2 comments
Closed

Tracking seems to be broken in 8.1.0 #15107

Etienne-io opened this issue Jul 12, 2019 · 2 comments
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity

Comments

@Etienne-io
Copy link

I used LocationComponent#setCameraMode on Android 8.0.0 and everything worked as expected.

I update to 8.1.0 and the setCameraMode looks broken.

When I log the onCameraTrackingChange, I see that the camera tracking mode is dismissed immediately after being set without interaction with the map.

Steps to reproduce

  1. Set the camera tracking mode to Follow

Expected behavior

The camera should follow the user and the camera tracking mode should remain in follow mode

Actual behavior

The camera does not move and the tracking mode is immediately dismissed.

Configuration

Android versions: 8
Device models: Nexus 5X
Mapbox SDK versions: 8.1.0

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Jul 12, 2019
@LukasPaczos
Copy link
Contributor

Hey @emerciercontexeo, 8.1.0 introduced #14745 - any traditional animation invoked after the tracking has been set is going to dismiss it. Before that change, the location's tracking animations and traditionally invoked animations could battle each other as they are not compatible.

You can inspect your code for places that invoke MapboxMap animations after the tracking has been set. Placing a breakpoint in OnCameraTrackingChangedListener#onCameraTrackingDismissed should help you debug those invocations.

Could you verify above and let us know if that was the root cause? If not, a reproducible example would be great. Thank you!

@stale stale bot added the archived Archived because of inactivity label Jan 8, 2020
@stale
Copy link

stale bot commented Jan 8, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity
Projects
None yet
Development

No branches or pull requests

2 participants