Skip to content

Commit d6e4671

Browse files
andy-ifesonalyadav1
authored andcommitted
Nearby List: Only show place cards with loaded names (commons-app#6301)
1 parent 12c59dc commit d6e4671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/fragments/NearbyParentFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
10641064

10651065
override fun updateListFragment(placeList: List<Place>) {
10661066
adapter!!.clear()
1067-
adapter!!.items = placeList
1067+
adapter!!.items = placeList.filter{ it.name.isNotEmpty() }
10681068
binding!!.bottomSheetNearby.noResultsMessage.visibility =
10691069
if (placeList.isEmpty()) View.VISIBLE else View.GONE
10701070
}

0 commit comments

Comments
 (0)