File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import com.simplemobiletools.contacts.pro.models.Email
2323import com.simplemobiletools.contacts.pro.models.Event
2424import com.simplemobiletools.contacts.pro.models.Organization
2525import java.util.*
26- import kotlin.collections.ArrayList
2726
2827class ContactsHelper (val context : Context ) {
2928 private val BATCH_SIZE = 50
@@ -811,8 +810,9 @@ class ContactsHelper(val context: Context) {
811810 }
812811
813812 var hadEmptyAccount = false
814- val contentResolverAccounts = getContentResolverAccounts().filter {
815- if (it.name.isEmpty() && it.type.isEmpty()) {
813+ val allAccounts = getContentResolverAccounts()
814+ val contentResolverAccounts = allAccounts.filter {
815+ if (it.name.isEmpty() && it.type.isEmpty() && allAccounts.none { it.name.lowercase(Locale .getDefault()) == " phone" }) {
816816 hadEmptyAccount = true
817817 }
818818
You can’t perform that action at this time.
0 commit comments