hide the proper views if no content is found
This commit is contained in:
parent
fceeca441a
commit
b6e3b482de
2 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
|
||||||
groupContacts = it.filter { it.groups.map { it.id }.contains(group.id) } as ArrayList<Contact>
|
groupContacts = it.filter { it.groups.map { it.id }.contains(group.id) } as ArrayList<Contact>
|
||||||
group_contacts_placeholder_2.beVisibleIf(groupContacts.isEmpty())
|
group_contacts_placeholder_2.beVisibleIf(groupContacts.isEmpty())
|
||||||
group_contacts_placeholder.beVisibleIf(groupContacts.isEmpty())
|
group_contacts_placeholder.beVisibleIf(groupContacts.isEmpty())
|
||||||
group_contacts_list.beVisibleIf(groupContacts.isNotEmpty())
|
group_contacts_fastscroller.beVisibleIf(groupContacts.isNotEmpty())
|
||||||
updateContacts(groupContacts)
|
updateContacts(groupContacts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
||||||
|
|
||||||
fragment_placeholder_2.beVisibleIf(storedGroups.isEmpty())
|
fragment_placeholder_2.beVisibleIf(storedGroups.isEmpty())
|
||||||
fragment_placeholder.beVisibleIf(storedGroups.isEmpty())
|
fragment_placeholder.beVisibleIf(storedGroups.isEmpty())
|
||||||
fragment_list.beVisibleIf(storedGroups.isNotEmpty())
|
fragment_fastscroller.beVisibleIf(storedGroups.isNotEmpty())
|
||||||
|
|
||||||
val currAdapter = fragment_list.adapter
|
val currAdapter = fragment_list.adapter
|
||||||
if (currAdapter == null) {
|
if (currAdapter == null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue