mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-27 00:27:47 +01:00
hide the contacts list when empty to fix the placeholder click listener
This commit is contained in:
parent
b65e91909f
commit
cbf781dfea
@ -115,6 +115,7 @@ abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet)
|
|||||||
private fun setupContacts(contacts: ArrayList<Contact>) {
|
private fun setupContacts(contacts: ArrayList<Contact>) {
|
||||||
fragment_placeholder_2.beVisibleIf(contacts.isEmpty())
|
fragment_placeholder_2.beVisibleIf(contacts.isEmpty())
|
||||||
fragment_placeholder.beVisibleIf(contacts.isEmpty())
|
fragment_placeholder.beVisibleIf(contacts.isEmpty())
|
||||||
|
fragment_list.beVisibleIf(contacts.isNotEmpty())
|
||||||
|
|
||||||
val currAdapter = fragment_list.adapter
|
val currAdapter = fragment_list.adapter
|
||||||
if (currAdapter == null) {
|
if (currAdapter == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user