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

[android] Revise handling of tracking modes and interactions with touch gestures. - #6572

Merged
tobrun merged 2 commits into
masterfrom
clydebarrow-trackingfixes
Oct 5, 2016
Merged

tobrun merged 2 commits into
masterfrom
clydebarrow-trackingfixes

Conversation

@tobrun

@tobrun tobrun commented Oct 4, 2016

Copy link
Copy Markdown
Member

Follow up on #6569, changed exposed API from original PR (closes #6549, closes #6567)

This fixes issues #6549 and #6567. Also pertinent to #6557.
Additional code has been added to the test app (Activity "User Tracking
Mode") to test. A potential race condition in the MapboxMap#easeCamera() methods where
a camera change generated by tracking which could have reset the tracking
modes has been eliminated by factoring out a new method
MapboxMap#easeCameraInternal().

Review @ivovandongen

@tobrun tobrun added Android Mapbox Maps SDK for Android ✓ ready for review labels Oct 4, 2016
@tobrun tobrun added this to the android-v4.2.0 milestone Oct 4, 2016
@mention-bot

Copy link
Copy Markdown

@tobrun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @cammace, @ljbade and @justasm to be potential reviewers.

@ivovandongen ivovandongen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some formatting issues. Otherwise, looks good

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use {} here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use {} here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine with previous if statement?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use {} here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use {} here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enter

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space before inline comments / remove inline comments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use {} here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fixing those. I notice there is a checkstyle.xml file in the platform/android directory, but it does not appear to match the style actually in use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh, looks like it's out of my hands now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @clydebarrow no worries, I will fix the comments up,
thanks again for the contribution, awesome stuff!
Yeah the checkstyle is something we still need to integrate as part of our CI.
We also need to make the docs on configuration more visible for external contributions.

@tobrun tobrun assigned ivovandongen and tobrun and unassigned tobrun and ivovandongen Oct 5, 2016
clydebarrow and others added 2 commits October 5, 2016 17:10
with touch gestures.

This fixes issues #6549 and #6567. Also pertinent to #6557.
Additional code has been added to the test app (Activity "User Tracking
Mode") to test.
A potential race condition in the MapboxMap#easeCamera() methods where
a camera change generated by tracking which could have reset the tracking
modes has been eliminated by factoring out a new method
MapboxMap#easeCameraInternal().
fix unit tests

fixup comments
@tobrun
tobrun force-pushed the clydebarrow-trackingfixes branch from 9c43294 to 3b72c28 Compare October 5, 2016 15:11
@tobrun
tobrun merged commit 3b72c28 into master Oct 5, 2016
@tobrun
tobrun deleted the clydebarrow-trackingfixes branch October 5, 2016 15:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

5 participants