Nearby List: Only show place cards with loaded names (#6301)
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run

This commit is contained in:
Ifeoluwa Andrew Omole 2025-05-04 11:08:18 +01:00 committed by GitHub
parent 0024e72a2e
commit 4d2170257a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
}