[android] #2661 - improved LOST configuration: using a min interval time spend interval instead of fixed interval, enlarged minimum replacement, fixed type in inline comment

This commit is contained in:
Tobrun
2015-10-18 19:43:09 +02:00
committed by Leith Bade
parent 9fa48abf6e
commit fe8cd14621

View File

@@ -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