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

MyLocationTrackingMode changes unexpectedly #8560

@rlaendle

Description

@rlaendle

Platform: Android 7.1.1
Mapbox SDK version: 5.0.1

Steps to trigger behavior

  1. In mapbox-android-demo project open the LocationTrackingActivity class (see https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/location/LocationTrackingActivity.java )
  2. In method enableLocationTracking() replace map.getTrackingSettings().setDismissAllTrackingOnGesture(false); by map.getTrackingSettings().setDismissAllTrackingOnGesture(true);
  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions