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

Align gesture animation reason #15218

Merged
merged 1 commit into from
Jul 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.util.concurrent.CopyOnWriteArrayList;

import static com.mapbox.mapboxsdk.constants.MapboxConstants.ZOOM_RATE;
import static com.mapbox.mapboxsdk.maps.MapboxMap.OnCameraMoveStartedListener.REASON_API_ANIMATION;
import static com.mapbox.mapboxsdk.maps.MapboxMap.OnCameraMoveStartedListener.REASON_API_GESTURE;

/**
Expand Down Expand Up @@ -714,7 +713,7 @@ public void onAnimationUpdate(@NonNull ValueAnimator animation) {
@Override
public void onAnimationStart(Animator animation) {
transform.cancelTransitions();
cameraChangeDispatcher.onCameraMoveStarted(REASON_API_ANIMATION);
cameraChangeDispatcher.onCameraMoveStarted(REASON_API_GESTURE);
}

@Override
Expand Down Expand Up @@ -823,7 +822,7 @@ public void onAnimationUpdate(@NonNull ValueAnimator animation) {
@Override
public void onAnimationStart(Animator animation) {
transform.cancelTransitions();
cameraChangeDispatcher.onCameraMoveStarted(REASON_API_ANIMATION);
cameraChangeDispatcher.onCameraMoveStarted(REASON_API_GESTURE);
}

@Override
Expand Down