mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Nearby List: Only show place cards with loaded names
This commit is contained in:
parent
0024e72a2e
commit
85e8a00d8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue