Hide special pets mounts if empty (#1666)

* added resources to run project

* remove special pets/mounts section if the user does not own any special pets/mounts

* added extra space
This commit is contained in:
pauliancu97 2021-11-10 15:37:12 +02:00 committed by GitHub
parent 476f23d1a1
commit e1406f3a43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,6 +258,7 @@ class StableRecyclerFragment :
}
items.add(0, "header")
items.removeAll { it is StableSection && (it.key as? String) == "special" && it.ownedCount == 0 }
return items
}