Fixing debug messages (toasts displayed).

master
Tomasz Półgrabia 2016-12-25 13:19:46 +01:00
parent 2e0b36339d
commit bb9ffb5455
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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();