Merge pull request #1662 from ismailnurudeen/fix/optional-contacts-with-number

Fix/showOnlyContactsWithNumbers parameter
This commit is contained in:
Tibor Kaputa 2023-04-18 15:46:50 +02:00 committed by GitHub
commit 8203a47e69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ class ContactsHelper(val context: Context) {
getAll: Boolean = false,
gettingDuplicates: Boolean = false,
ignoredContactSources: HashSet<String> = HashSet(),
showOnlyContactsWithNumbers: Boolean = context.baseConfig.showOnlyContactsWithNumbers,
callback: (ArrayList<Contact>) -> Unit
) {
ensureBackgroundThread {
@ -52,7 +53,6 @@ class ContactsHelper(val context: Context) {
}
val contactsSize = contacts.size()
val showOnlyContactsWithNumbers = context.baseConfig.showOnlyContactsWithNumbers
val tempContacts = ArrayList<Contact>(contactsSize)
val resultContacts = ArrayList<Contact>(contactsSize)