Nearby List: Only show place cards with loaded names

This commit is contained in:
Ifeoluwa Andrew Omole 2025-05-01 16:10:45 +01:00
parent 0024e72a2e
commit 85e8a00d8a

View file

@ -1064,7 +1064,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
override fun updateListFragment(placeList: List<Place>) {
adapter!!.clear()
adapter!!.items = placeList
adapter!!.items = placeList.filter{ it.name.isNotEmpty() }
binding!!.bottomSheetNearby.noResultsMessage.visibility =
if (placeList.isEmpty()) View.VISIBLE else View.GONE
}