mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Remove individual remove and add metods, use only setItems for setting items instead (#4107)
This commit is contained in:
parent
58cd7b85a1
commit
9e92c95d42
1 changed files with 0 additions and 11 deletions
|
|
@ -675,14 +675,6 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
noResultsView.setVisibility(placeList.isEmpty() ? View.VISIBLE : View.GONE);
|
noResultsView.setVisibility(placeList.isEmpty() ? View.VISIBLE : View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearNearbyList() {
|
|
||||||
adapter.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addPlaceToNearbyList(final Place place) {
|
|
||||||
adapter.add(place);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public fr.free.nrw.commons.location.LatLng getLastLocation() {
|
public fr.free.nrw.commons.location.LatLng getLastLocation() {
|
||||||
return lastKnownLocation;
|
return lastKnownLocation;
|
||||||
|
|
@ -1206,8 +1198,6 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
* @param curLatLng current location
|
* @param curLatLng current location
|
||||||
*/
|
*/
|
||||||
public void updateMarker(final boolean isBookmarked, final Place place, @Nullable final fr.free.nrw.commons.location.LatLng curLatLng) {
|
public void updateMarker(final boolean isBookmarked, final Place place, @Nullable final fr.free.nrw.commons.location.LatLng curLatLng) {
|
||||||
addPlaceToNearbyList(place);
|
|
||||||
|
|
||||||
VectorDrawableCompat vectorDrawable = VectorDrawableCompat.create(
|
VectorDrawableCompat vectorDrawable = VectorDrawableCompat.create(
|
||||||
getContext().getResources(), getIconFor(place, isBookmarked), getContext().getTheme());
|
getContext().getResources(), getIconFor(place, isBookmarked), getContext().getTheme());
|
||||||
|
|
||||||
|
|
@ -1266,7 +1256,6 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addCurrentLocationMarker(NearbyController.currentLocation);
|
addCurrentLocationMarker(NearbyController.currentLocation);
|
||||||
clearNearbyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addNearbyMarkersToMapBoxMap(final List<NearbyBaseMarker> nearbyBaseMarkers, final Marker selectedMarker) {
|
private void addNearbyMarkersToMapBoxMap(final List<NearbyBaseMarker> nearbyBaseMarkers, final Marker selectedMarker) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue