You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
In method enableLocationTracking() replace map.getTrackingSettings().setDismissAllTrackingOnGesture(false); by map.getTrackingSettings().setDismissAllTrackingOnGesture(true);
Start the LocationTrackingActivity and additional start a mock location app (e.g. Fake GPS).
Expected behavior
If I do not execute any gesture on the screen of the android device, MyLocationTrackingMode should not change.
Actual behavior
After a short time, without touching anything on the screen, MyLocationTrackingMode changes from TRACKING_FOLLOW to TRACKING_NONE.
Note that this behavior does not appear, when MyBearingTrackingMode is set to NONE.
The text was updated successfully, but these errors were encountered:
Thank you for providing the information to reproduce. There is a race condition when MyLocationView sets dismissing tracking to disable while performing the animation (this animation is posted to the end of message queue). Posting dismissing the tracking mode resolves this. Ran a test for 10+ minutes without seeing the issue from OP.
Platform: Android 7.1.1
Mapbox SDK version: 5.0.1
Steps to trigger behavior
LocationTrackingActivity
class (see https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/location/LocationTrackingActivity.java )enableLocationTracking()
replacemap.getTrackingSettings().setDismissAllTrackingOnGesture(false);
bymap.getTrackingSettings().setDismissAllTrackingOnGesture(true);
Expected behavior
If I do not execute any gesture on the screen of the android device,
MyLocationTrackingMode
should not change.Actual behavior
After a short time, without touching anything on the screen,
MyLocationTrackingMode
changes fromTRACKING_FOLLOW
toTRACKING_NONE
.Note that this behavior does not appear, when
MyBearingTrackingMode
is set toNONE
.The text was updated successfully, but these errors were encountered: