Don't try to normalize phone numbers

This commit is contained in:
MM20 2024-07-03 22:49:00 +02:00
parent 35617a6eb4
commit 8ca7a7b507
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -105,8 +105,7 @@ internal class ContactRepository(
}
ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE ->
dataCursor.getStringOrNull(numberColumn)?.let {
val phone = it.replace(Regex("[^+0-9],"), "")
dataCursor.getStringOrNull(numberColumn)?.let { phone ->
phoneNumbers += PhoneNumber(
phone,
when (dataCursor.getInt(typeColumn)) {