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.

[android] location tracking is being reset on screen rotation #9186

Closed

Description

@LukasPaczos

Platform: Android
Mapbox SDK version: v5.1.0-beta.3

Steps to trigger behavior

  1. Follow location using MyLocationTracking#TRACKING_FOLLOW
  2. Rotate device

Expected behavior

Tracking mode is restored.

Actual behavior

Tracking mode is reset to MyLocationTracking#TRACKING_NONE

This happens because even though tracking mode is rightfully restored in TrackingSetting#onRestoreInstanceState(), afterwards MapboxMap#moveCamera() is being posted to the end of the queue and resets tracking mode back to MyLocationTracking#TRACKING_NONE.

Activity

  1. added
    Android
    on Jun 5, 2017
  2. changed the title [-][android] location tracking is being reseted on screen rotation[/-] [+][android] location tracking is being reset on screen rotation[/+] on Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions