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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Encapsulate gesture and tracking mode behaviour #6557
tldr: Current system around gestures and tracking modes introduces state management in the code (ie. if-else checks). Let's refactor this out.
Gestures
The Android SDK contains zoom, scroll, rotate and tilt gestures. These items can be enabled/disabled by users through xml and code and introduce a first layer of state management.
Tracking settings
Tracking settings allow the user to track location/heading. Users can configure tracking settings that impacts certain gestures (eg. setting bearing gps, disables rotate gesture). On top of that we also allow to hook into gesture code that results in disabling tracking modes.
Proposal
We have a complex system around gestures and tracking modes. It now introduces boilerplate and is a source of bugs (ref. #6549). Proposal is to look into refactoring this out into a design pattern and make it more testable.
Activity
[android] Revise handling of tracking modes and interactions
tobrun commentedon Dec 2, 2016
Happened with #7189
tobrun commentedon Dec 2, 2016
additional implementation notes here is that we now have an Interface that is responsible for changing the focal point -> FocalPointChangeListener.