diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2015-10-18 19:43:09 +0200 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2015-10-22 15:15:23 +1100 |
commit | fe8cd14621931acca654794acf2900c1f80eda64 (patch) | |
tree | 96a32c350e6b14839d926d4b73ab934efc19d534 /android | |
parent | 9fa48abf6e63bfca2699d17826c55dbabacf7fa6 (diff) | |
download | qtlocation-mapboxgl-fe8cd14621931acca654794acf2900c1f80eda64.tar.gz |
[android] #2661 - improved LOST configuration: using a min interval time spend interval instead of fixed interval, enlarged minimum replacement, fixed type in inline comment
Diffstat (limited to 'android')
-rw-r--r-- | android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java index 618925945f..d247c3af0c 100644 --- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java +++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java @@ -624,11 +624,11 @@ public final class MapView extends FrameLayout { onConnectivityChanged(isConnected); } - // Setup location aervices + // Setup location services mLocationClient = new LostApiClient.Builder(getContext()).build(); mLocationRequest = LocationRequest.create() - .setInterval(1000) - .setSmallestDisplacement(1) + .setFastestInterval(1250l) + .setSmallestDisplacement(2.0f) .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); // Setup user location UI |