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 (#6301)
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run
Some checks are pending
Android CI / Run tests and generate APK (push) Waiting to run
This commit is contained in:
parent
0024e72a2e
commit
4d2170257a
1 changed files with 1 additions and 1 deletions
|
|
@ -1064,7 +1064,7 @@ class NearbyParentFragment : CommonsDaggerSupportFragment(),
|
||||||
|
|
||||||
override fun updateListFragment(placeList: List<Place>) {
|
override fun updateListFragment(placeList: List<Place>) {
|
||||||
adapter!!.clear()
|
adapter!!.clear()
|
||||||
adapter!!.items = placeList
|
adapter!!.items = placeList.filter{ it.name.isNotEmpty() }
|
||||||
binding!!.bottomSheetNearby.noResultsMessage.visibility =
|
binding!!.bottomSheetNearby.noResultsMessage.visibility =
|
||||||
if (placeList.isEmpty()) View.VISIBLE else View.GONE
|
if (placeList.isEmpty()) View.VISIBLE else View.GONE
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue