commit 3ce1f45d18525751a23fb9c02455c24bb861b6fc Author: Fabio Mazza Date: Tue May 5 16:38:43 2026 +0200 Show correct message if there is not a position found yet diff --git a/app/src/main/java/it/reyboz/bustorino/fragments/NearbyStopsFragment.java b/app/src/main/java/it/reyboz/bustorino/fragments/NearbyStopsFragment.java index faec384..6259bad 100644 --- a/app/src/main/java/it/reyboz/bustorino/fragments/NearbyStopsFragment.java +++ b/app/src/main/java/it/reyboz/bustorino/fragments/NearbyStopsFragment.java @@ -483,7 +483,10 @@ public class NearbyStopsFragment extends Fragment { fragmentLocationListener.lastUpdateTime = -1; //locManager.removeLocationRequestFor(fragmentLocationListener); //locManager.addLocationRequestFor(fragmentLocationListener); - showStopsInViews(currentNearbyStops, lastPosition); + if(lastPosition!=null) { + // we have at least one fix on the position + showStopsInViews(currentNearbyStops, lastPosition); + } } /**