From bb9ffb54559e066b901568ee4c26a237bc51a478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Sun, 25 Dec 2016 13:19:46 +0100 Subject: [PATCH] Fixing debug messages (toasts displayed). --- .../callbacks/StandardLocationListener.java | 4 ++-- .../urbanexplorer/fragments/PlacesFragment.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/StandardLocationListener.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/StandardLocationListener.java index ddb2214..5bd675d 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/StandardLocationListener.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/callbacks/StandardLocationListener.java @@ -26,7 +26,7 @@ public class StandardLocationListener implements LocationListener { @Override public void onLocationChanged(Location location) { lg.info("Location provider changed: {}", location); - Toast.makeText(ctx, "Location changed " + location, Toast.LENGTH_LONG).show(); + // Toast.makeText(ctx, "Location changed " + location, Toast.LENGTH_LONG).show(); LocationUtils.updateLastLocationUPdate(ctx); EventBus.getDefault().post( new LocationChangedEventBuilder() @@ -37,7 +37,7 @@ public class StandardLocationListener implements LocationListener { @Override public void onStatusChanged(String provider, int status, Bundle extras) { lg.debug("Location provider {} status has changed to {} with {}", provider, status, extras); - Toast.makeText(ctx, "Location provider " + provider + " status changed to " + status, Toast.LENGTH_LONG).show(); + // Toast.makeText(ctx, "Location provider " + provider + " status changed to " + status, Toast.LENGTH_LONG).show(); } @Override diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java index 462933d..76ae2cb 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/fragments/PlacesFragment.java @@ -159,11 +159,11 @@ public class PlacesFragment extends Fragment { return; } - Toast.makeText(getActivity(), - String.format(AppConstants.DEF_APP_LOCALE, - "Location changed: %.3f,%.3f", - location.getLatitude(), location.getLongitude()), - Toast.LENGTH_SHORT).show(); +// Toast.makeText(getActivity(), +// String.format(AppConstants.DEF_APP_LOCALE, +// "Location changed: %.3f,%.3f", +// location.getLatitude(), location.getLongitude()), +// Toast.LENGTH_SHORT).show(); cleanAdapter();