From d2d7d607fb525e9a44289dd76dcf775eac2131b8 Mon Sep 17 00:00:00 2001 From: neslihanturan Date: Thu, 22 Feb 2018 19:54:17 +0300 Subject: [PATCH] Set min update time to a smaller value --- .../free/nrw/commons/location/LocationServiceManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/location/LocationServiceManager.java b/app/src/main/java/fr/free/nrw/commons/location/LocationServiceManager.java index 554829d58..ceba2ad06 100644 --- a/app/src/main/java/fr/free/nrw/commons/location/LocationServiceManager.java +++ b/app/src/main/java/fr/free/nrw/commons/location/LocationServiceManager.java @@ -23,7 +23,7 @@ import timber.log.Timber; public class LocationServiceManager implements LocationListener { public static final int LOCATION_REQUEST = 1; - private static final long MIN_LOCATION_UPDATE_REQUEST_TIME_IN_MILLIS = 2 * 60 * 1000; + private static final long MIN_LOCATION_UPDATE_REQUEST_TIME_IN_MILLIS = 2 * 60 * 100; private static final long MIN_LOCATION_UPDATE_REQUEST_DISTANCE_IN_METERS = 10; private Context context; @@ -180,14 +180,14 @@ public class LocationServiceManager implements LocationListener { Log.d("deneme","location changed"); if (isBetterLocation(location, lastLocation) .equals(LocationChangeType.LOCATION_SIGNIFICANTLY_CHANGED)) { - Log.d("deneme","location changed better location"); + Log.d("deneme","location SIGNIFICANTLY changed better location"); lastLocation = location; for (LocationUpdateListener listener : locationListeners) { listener.onLocationChangedSignificantly(LatLng.from(lastLocation)); } } else if (isBetterLocation(location, lastLocation) .equals(LocationChangeType.LOCATION_SLIGHTLY_CHANGED)) { - Log.d("deneme","location changed better location"); + Log.d("deneme","location SLIGHTLY changed better location"); lastLocation = location; for (LocationUpdateListener listener : locationListeners) { listener.onLocationChangedSlightly(LatLng.from(lastLocation));