diff options
author | paczos <lukaszp@yanosik.pl> | 2017-06-06 09:25:51 +0200 |
---|---|---|
committer | paczos <lukaszp@yanosik.pl> | 2017-06-06 09:25:51 +0200 |
commit | fad2368c61ef52a51f14906cd69d9d5d4f2ceaaa (patch) | |
tree | ec4ce0dae76b230e4da4cfd8570da359ea445d41 | |
parent | da532007043b1827e83686faca0de2a45c4ef730 (diff) | |
download | qtlocation-mapboxgl-fad2368c61ef52a51f14906cd69d9d5d4f2ceaaa.tar.gz |
[android] - dealing with infinite camera move callbacks (#9177)upstream/LukasPaczos-9177-infinite-camera-move-callbacks
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/MyLocationView.java | 6 |
1 files changed, 6 insertions, 0 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 f5ef46a5d3..098f006f6c 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 @@ -701,6 +701,12 @@ public class MyLocationView extends View { private abstract class MyLocationBehavior { + MyLocationBehavior() { + if (latLng != null) { + locationUpdateTimestamp = SystemClock.elapsedRealtime(); + } + } + void updateLatLng(@NonNull Location newLocation) { location = newLocation; } |