summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlangsmith <langstonlmcs@gmail.com>2019-02-19 13:35:41 -0800
committerlangsmith <langstonlmcs@gmail.com>2019-04-09 17:25:35 -0700
commit552643ee8c417c41c68b6f1bc4b72e6357c2a73b (patch)
tree1d3fa6fb118b4c1cb62dd78c20c550800775e76e
parent194094e769fbbc0c25a5a6aa86db123528b70c86 (diff)
downloadqtlocation-mapboxgl-552643ee8c417c41c68b6f1bc4b72e6357c2a73b.tar.gz
[ls] adding Logger usage for tracking pulse stops
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java2
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationLayerController.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
index 03aee9d1f3..d43d802140 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
@@ -1146,7 +1146,7 @@ public final class LocationComponent {
locationEngine.removeLocationUpdates(currentLocationEngineListener);
}
if (options.pulseEnabled()) {
- Log.d(TAG, "onLocationLayerStop: about to stop animation ");
+ Logger.d(TAG, "onLocationLayerStop: about to stop animation ");
locationAnimatorCoordinator.stopPulsingAnimation();
}
mapboxMap.removeOnCameraMoveListener(onCameraMoveListener);
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationLayerController.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationLayerController.java
index 5d2ff4d0ee..a8e067c12d 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationLayerController.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationLayerController.java
@@ -14,6 +14,7 @@ import com.mapbox.geojson.Feature;
import com.mapbox.geojson.Point;
import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.location.modes.RenderMode;
+import com.mapbox.mapboxsdk.log.Logger;
import com.mapbox.mapboxsdk.maps.MapboxMap;
import com.mapbox.mapboxsdk.maps.Style;
import com.mapbox.mapboxsdk.style.layers.Layer;
@@ -386,7 +387,7 @@ final class LocationLayerController {
private void stylePulsingCircle(LocationComponentOptions options) {
if (mapboxMap.getStyle() != null) {
if (mapboxMap.getStyle().getLayer(PROPERTY_PULSING_CIRCLE_LAYER) != null) {
- Log.d(TAG, "stylePulsingCircle: options.pulseEnabled() = " + options.pulseEnabled());
+ Logger.d(TAG, "stylePulsingCircle: options.pulseEnabled() = " + options.pulseEnabled());
// TODO: Swap true for options.pulseEnabled() but figure out why options.pulseEnabled() sometimes returns false
setLayerVisibility(PROPERTY_PULSING_CIRCLE_LAYER, true);
mapboxMap.getStyle().getLayer(PROPERTY_PULSING_CIRCLE_LAYER).setProperties(