Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Invoke cancelable callback when zoom/tilt while tracking is ignored #83

Merged
merged 1 commit into from
Dec 3, 2019

Conversation

LukasPaczos
Copy link
Member

To make the callbacks more reliable, we should ensure to invoke them even when the transition is ignored.

@LukasPaczos LukasPaczos added this to the release-tequila milestone Dec 3, 2019
@LukasPaczos LukasPaczos requested a review from a team December 3, 2019 11:28
Copy link
Member

@tobrun tobrun left a comment

Choose a reason for hiding this comment

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

Looks good, maybe changelog?

@@ -739,14 +739,15 @@ public void zoomWhileTracking(double zoomLevel, long animationDuration,
@Nullable MapboxMap.CancelableCallback callback) {
checkActivationState();
if (!isLayerReady) {
notifyUnsuccessfulCameraOperation(callback, null);
Copy link
Member

Choose a reason for hiding this comment

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

Would it be useful to add a message for this occurrence as well? or would that spam the user?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd rather skip it as this would happen only when component is paused, so it's expected that it'll ignored the updates.

LukasPaczos added a commit that referenced this pull request Dec 3, 2019
@LukasPaczos
Copy link
Member Author

Chagelog in #85.

@LukasPaczos LukasPaczos merged commit 9a40605 into master Dec 3, 2019
@LukasPaczos LukasPaczos deleted the lp-zoom-tilt-ignored-callback branch December 3, 2019 12:16
LukasPaczos added a commit that referenced this pull request Dec 3, 2019
harvsu pushed a commit that referenced this pull request Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants