show empty list placeholder at Group activity when appropriate

This commit is contained in:
tibbi 2018-11-06 21:48:05 +01:00
parent 1422ae1d9d
commit 9f01cb5389

View file

@ -130,7 +130,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
override fun removeFromGroup(contacts: ArrayList<Contact>) {
Thread {
removeContactsFromGroup(contacts, group.id!!)
if (groupContacts.size == 0) {
if (groupContacts.size == contacts.size) {
refreshContacts()
}
}.start()