diff options
author | Pablo Guardiola <guardiola31337@hotmail.com> | 2016-11-23 11:48:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 11:48:07 -0500 |
commit | ac924719e12f6eccacdbdc80b3c887b4db313c8e (patch) | |
tree | 965ae13b706d311fe23e1199cf1e3a5cc9202fe7 /platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java | |
parent | 5a4b73f3be07aaceb689f0f50290facdc692e281 (diff) | |
download | qtlocation-mapboxgl-ac924719e12f6eccacdbdc80b3c887b4db313c8e.tar.gz |
[android] - replace Android logs with Timber (#6372) (#7149)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java index a2ac43960f..273695ae92 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/feature/QueryRenderedFeaturesBoxCountActivity.java @@ -5,7 +5,7 @@ import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; -import android.util.Log; +import timber.log.Timber; import android.view.MenuItem; import android.view.View; import android.widget.Toast; @@ -27,7 +27,6 @@ import java.util.Map; * Demo's query rendered features */ public class QueryRenderedFeaturesBoxCountActivity extends AppCompatActivity { - private static final String TAG = QueryRenderedFeaturesBoxCountActivity.class.getSimpleName(); public MapView mapView; private MapboxMap mapboxMap; @@ -59,7 +58,7 @@ public class QueryRenderedFeaturesBoxCountActivity extends AppCompatActivity { int top = selectionBox.getTop() - mapView.getTop(); int left = selectionBox.getLeft() - mapView.getLeft(); RectF box = new RectF(left, top, left + selectionBox.getWidth(), top + selectionBox.getHeight()); - Log.i(TAG, String.format("Querying box %s", box)); + Timber.i(String.format("Querying box %s", box)); List<Feature> features = mapboxMap.queryRenderedFeatures(box); //Show count @@ -81,21 +80,22 @@ public class QueryRenderedFeaturesBoxCountActivity extends AppCompatActivity { } private void debugOutput(List<Feature> features) { - Log.i(TAG, String.format("Got %s features", features.size())); + Timber.i(String.format("Got %s features", features.size())); for (Feature feature : features) { if (feature != null) { - Log.i(TAG, String.format("Got feature %s with %s properties and Geometry %s", + Timber.i(String.format("Got feature %s with %s properties and Geometry %s", feature.getId(), feature.getProperties() != null ? feature.getProperties().entrySet().size() : "<null>", feature.getGeometry() != null ? feature.getGeometry().getClass().getSimpleName() : "<null>") ); if (feature.getProperties() != null) { for (Map.Entry<String, JsonElement> entry : feature.getProperties().entrySet()) { - Log.i(TAG, String.format("Prop %s - %s", entry.getKey(), entry.getValue())); + Timber.i(String.format("Prop %s - %s", entry.getKey(), entry.getValue())); } } } else { - Log.i(TAG, "Got NULL feature %s"); + // TODO Question: Why not formatting here?? + Timber.i("Got NULL feature %s"); } } } |