diff --git a/library/build.gradle b/library/build.gradle index 576cc45c9..f531f89a5 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -21,7 +21,7 @@ apply plugin: 'realm-android' apply plugin: 'com.jfrog.bintray' apply plugin: 'maven-publish' -version '0.8.2' +version '0.8.3' project.version = this.version task sourceJar(type: Jar) { diff --git a/library/src/main/java/io/ona/kujaku/location/clients/AndroidGpsLocationClient.java b/library/src/main/java/io/ona/kujaku/location/clients/AndroidGpsLocationClient.java index bc2ef73b3..4545c86f7 100644 --- a/library/src/main/java/io/ona/kujaku/location/clients/AndroidGpsLocationClient.java +++ b/library/src/main/java/io/ona/kujaku/location/clients/AndroidGpsLocationClient.java @@ -16,9 +16,6 @@ import com.google.android.gms.location.LocationSettingsResult; import com.google.android.gms.location.LocationSettingsStatusCodes; -import java.util.Locale; - -import io.ona.kujaku.KujakuLibrary; import io.ona.kujaku.R; import io.ona.kujaku.utils.LocationSettingsHelper; import timber.log.Timber; @@ -129,8 +126,6 @@ public void requestLocationUpdates(@NonNull LocationListener locationListener) { Location location = locationManager.getLastKnownLocation(getProvider()); if (location != null && (lastLocation == null || (location != null && isBetterLocation(location, lastLocation)))) { lastLocation = location; - KujakuLibrary.getInstance() - .showToast(String.format(Locale.ENGLISH, "A new location received : \nProvider: %s\nAccuracy: %f\nPoint (%f, %f)", location.getProvider(), location.getAccuracy(), location.getLatitude(), location.getLongitude())); locationListener.onLocationChanged(lastLocation); } else { // Enable snackbar in the activity diff --git a/library/src/main/java/io/ona/kujaku/location/clients/GoogleLocationClient.java b/library/src/main/java/io/ona/kujaku/location/clients/GoogleLocationClient.java index 0afc75d59..365c481c1 100644 --- a/library/src/main/java/io/ona/kujaku/location/clients/GoogleLocationClient.java +++ b/library/src/main/java/io/ona/kujaku/location/clients/GoogleLocationClient.java @@ -23,9 +23,6 @@ import com.google.android.gms.location.LocationSettingsStatusCodes; import com.google.android.gms.tasks.OnSuccessListener; -import java.util.Locale; - -import io.ona.kujaku.KujakuLibrary; import io.ona.kujaku.R; import io.ona.kujaku.utils.LocationSettingsHelper; import timber.log.Timber; @@ -96,12 +93,6 @@ public void requestLocationUpdates(@NonNull android.location.LocationListener lo .addOnSuccessListener((Activity) context, new OnSuccessListener() { @Override public void onSuccess(Location location) { - if (location != null) { - KujakuLibrary.getInstance() - .showToast(String.format(Locale.ENGLISH, "A new location received : \nProvider: %s\nAccuracy: %f\nPoint (%f, %f)" - , location.getProvider(), location.getAccuracy(), location.getLatitude(), location.getLongitude())); - } - if (lastLocation == null || (location != null && isBetterLocation(location, lastLocation))) { lastLocation = location; } diff --git a/library/src/main/java/io/ona/kujaku/views/KujakuMapView.java b/library/src/main/java/io/ona/kujaku/views/KujakuMapView.java index ef8564e0e..7b9088294 100644 --- a/library/src/main/java/io/ona/kujaku/views/KujakuMapView.java +++ b/library/src/main/java/io/ona/kujaku/views/KujakuMapView.java @@ -22,7 +22,6 @@ import android.widget.ImageButton; import android.widget.ImageView; import android.widget.LinearLayout; -import android.widget.Toast; import com.cocoahero.android.geojson.Feature; import com.cocoahero.android.geojson.Point; @@ -57,15 +56,12 @@ import java.util.HashMap; import java.util.HashSet; import java.util.List; -import java.util.Locale; import java.util.Map; import java.util.Set; -import io.ona.kujaku.KujakuLibrary; import io.ona.kujaku.R; import io.ona.kujaku.callbacks.AddPointCallback; import io.ona.kujaku.callbacks.OnLocationServicesEnabledCallBack; -import io.ona.kujaku.enums.LocationClient; import io.ona.kujaku.exceptions.TrackingServiceNotInitializedException; import io.ona.kujaku.exceptions.WmtsCapabilitiesException; import io.ona.kujaku.helpers.MapboxLocationComponentWrapper; @@ -313,12 +309,6 @@ private void warmUpLocationServices() { locationClient.requestLocationUpdates(new BaseLocationListener() { @Override public void onLocationChanged(Location location) { - if (location != null) { - KujakuLibrary.getInstance() - .showToast(String.format(Locale.ENGLISH, "A new location received : \nProvider: %s\nAccuracy: %f\nPoint (%f, %f)" - , location.getProvider(), location.getAccuracy(), location.getLatitude(), location.getLongitude())); - } - float distanceMoved = -1; if (location != null) { if (latestLocation != null) {