diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2017-11-01 12:32:12 -0700 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2017-11-01 14:56:37 -0700 |
commit | e6d50da2c5f30408d8190dadd2d965851dfcb1d1 (patch) | |
tree | c8c8b8de6962e9167a3334770cc9caaa0116b9d3 | |
parent | a5ff277ed98dfc7a21ef92f99567ee5a682a2210 (diff) | |
download | qtlocation-mapboxgl-e6d50da2c5f30408d8190dadd2d965851dfcb1d1.tar.gz |
[android] - check for possitive animation duration
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java index ac91746a2a..8a393ebb1f 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java @@ -1017,7 +1017,7 @@ public class MyLocationView extends View { // accuracy updateAccuracy(location); - if (locationChangeAnimationEnabled) { + if (locationChangeAnimationEnabled && animationDuration > 0) { // ease to new camera position with a linear interpolator mapboxMap.easeCamera(CameraUpdateFactory.newCameraPosition(builder.build()), animationDuration, false, null, true); |