Disable SwipeRefresh if no vcard list is set in config

This commit is contained in:
Christophe Deschamps 2025-05-09 10:44:51 +02:00
parent a7efacaeb6
commit 6488c89973

View file

@ -384,6 +384,7 @@ class MasterContactsFragment : MasterFragment<ContactMasterFragmentBinding, Cont
super.onResume()
listViewModel.refreshVCards()
listViewModel.updateContactsList(true)
binding.swiperefresh.isEnabled = corePreferences.contactsVCardList != null && corePreferences.contactsVCardList!!.isNotEmpty()
}
@Deprecated("Deprecated in Java")