Fixing debug messages (toasts displayed).
parent
2e0b36339d
commit
bb9ffb5455
|
@ -26,7 +26,7 @@ public class StandardLocationListener implements LocationListener {
|
||||||
@Override
|
@Override
|
||||||
public void onLocationChanged(Location location) {
|
public void onLocationChanged(Location location) {
|
||||||
lg.info("Location provider changed: {}", 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);
|
LocationUtils.updateLastLocationUPdate(ctx);
|
||||||
EventBus.getDefault().post(
|
EventBus.getDefault().post(
|
||||||
new LocationChangedEventBuilder()
|
new LocationChangedEventBuilder()
|
||||||
|
@ -37,7 +37,7 @@ public class StandardLocationListener implements LocationListener {
|
||||||
@Override
|
@Override
|
||||||
public void onStatusChanged(String provider, int status, Bundle extras) {
|
public void onStatusChanged(String provider, int status, Bundle extras) {
|
||||||
lg.debug("Location provider {} status has changed to {} with {}", provider, status, 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
|
@Override
|
||||||
|
|
|
@ -159,11 +159,11 @@ public class PlacesFragment extends Fragment {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Toast.makeText(getActivity(),
|
// Toast.makeText(getActivity(),
|
||||||
String.format(AppConstants.DEF_APP_LOCALE,
|
// String.format(AppConstants.DEF_APP_LOCALE,
|
||||||
"Location changed: %.3f,%.3f",
|
// "Location changed: %.3f,%.3f",
|
||||||
location.getLatitude(), location.getLongitude()),
|
// location.getLatitude(), location.getLongitude()),
|
||||||
Toast.LENGTH_SHORT).show();
|
// Toast.LENGTH_SHORT).show();
|
||||||
|
|
||||||
cleanAdapter();
|
cleanAdapter();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue