Fixed minor bug

This commit is contained in:
Kanahia 2024-08-03 21:10:32 +05:30
parent 6258163631
commit b1c98b0dcd

View file

@ -610,11 +610,15 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
if (locationPermissionsHelper.checkLocationPermission(getActivity())) {
if (lastFocusLocation == null && lastKnownLocation == null) {
locationPermissionGranted();
} else if (updatedPlacesList != null) {
if (updatedPlacesList.size() != 0) {
loadPlacesDataAsync(updatedPlacesList, updatedLatLng);
} else {
updateMapMarkers(updatedPlacesList, getLastMapFocus(), false);
} else{
if (updatedPlacesList != null) {
if (!updatedPlacesList.isEmpty()) {
loadPlacesDataAsync(updatedPlacesList, updatedLatLng);
} else {
updateMapMarkers(updatedPlacesList, getLastMapFocus(), false);
}
}else {
locationPermissionGranted();
}
}
} else {