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] Disabled UI setting for rotate gestures is spuriously re-enabled #6549

Closed

Description

@clydebarrow

Platform: Android
Mapbox SDK version:4.2.0-SNAPSHOT

Steps to trigger behaviour

  1.             mapboxMap.getUiSettings().setRotateGesturesEnabled(false);
    
  2.         mapboxMap.setMyLocationEnabled(true);
    
  3. Attempt rotate gesture on map

Expected behaviour

Map should not rotate with gesture

Actual behaviour

Map rotates.

On investigation, in TrackingSettings.java. the method validateGesturesForBearingTrackingMode() is modifying the UI settings for RotateGesturesEnabled. This bug appeared after PR 5480 (commit 871f82d) but the root cause is deeper. Basically the logic to suppress location and/or bearing tracking should be layered on top of the UI settings, not modify them.

PR with fix to follow shortly.

Activity

  1. added
    Android
    on Oct 3, 2016
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