diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-10-24 18:35:26 +0200 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-10-31 14:53:56 +0100 |
commit | c91655c7c8200ad8ec6b8fc5a85ba26c8fdf9997 (patch) | |
tree | 676db285c5bdd408f2412a37c40c2131a15acedc | |
parent | 22b9cbcd61610a6519127732433ab89c7464f06a (diff) | |
download | qtlocation-mapboxgl-c91655c7c8200ad8ec6b8fc5a85ba26c8fdf9997.tar.gz |
[android] cleanup isDismissible flag
2 files changed, 2 insertions, 25 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java index 106026732c..5296535dd0 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java @@ -759,34 +759,11 @@ public final class MapboxMap { final int durationMs, final boolean easingInterpolator, @Nullable final MapboxMap.CancelableCallback callback) { - easeCamera(update, durationMs, easingInterpolator, callback, false); - } - - /** - * Gradually move the camera by a specified duration in milliseconds, zoom will not be affected - * unless specified within {@link CameraUpdate}. A callback can be used to be notified when - * easing the camera stops. If {@link #getCameraPosition()} is called during the animation, it - * will return the current location of the camera in flight. - * - * @param update The change that should be applied to the camera. - * @param durationMs The duration of the animation in milliseconds. This must be strictly - * positive, otherwise an IllegalArgumentException will be thrown. - * @param easingInterpolator True for easing interpolator, false for linear. - * @param callback An optional callback to be notified from the main thread when the animation - * stops. If the animation stops due to its natural completion, the callback - * will be notified with onFinish(). If the animation stops due to interruption - * by a later camera movement or a user gesture, onCancel() will be called. - * Do not update or ease the camera from within onCancel(). - * @param isDismissable true will allow animated camera changes dismiss a tracking mode. - */ - public final void easeCamera(@NonNull final CameraUpdate update, final int durationMs, - final boolean easingInterpolator, @Nullable final MapboxMap.CancelableCallback callback, - final boolean isDismissable) { if (durationMs <= 0) { throw new IllegalArgumentException("Null duration passed into easeCamera"); } - transform.easeCamera(MapboxMap.this, update, durationMs, easingInterpolator, callback, isDismissable); + transform.easeCamera(MapboxMap.this, update, durationMs, easingInterpolator, callback); } /** diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java index 3c039d3de2..c70266eea2 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java @@ -113,7 +113,7 @@ final class Transform implements MapView.OnMapChangedListener { @UiThread final void easeCamera(MapboxMap mapboxMap, CameraUpdate update, int durationMs, boolean easingInterpolator, - final MapboxMap.CancelableCallback callback, boolean isDismissable) { + final MapboxMap.CancelableCallback callback) { CameraPosition cameraPosition = update.getCameraPosition(mapboxMap); if (isValidCameraPosition(cameraPosition)) { cancelTransitions(); |