Update MyContactsContentProvider.kt

This commit is contained in:
Tibor Kaputa 2022-05-29 22:18:17 +02:00 committed by GitHub
parent 0f9af3e305
commit c3dbd7f1f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ class MyContactsContentProvider {
fun getSimpleContacts(context: Context, cursor: Cursor?): ArrayList<SimpleContact> {
val contacts = ArrayList<SimpleContact>()
val packageName = context.packageName.removeSuffix(".debug")
if (packageName != "com.simplemobiletools.dialer" && packageName != "com.simplemobiletools.smsmessenger" && packageName != "com.simplemobiletools.calendar.pro" && packageName != "com.simplemobiletools.commons") {
if (packageName != "com.simplemobiletools.dialer" && packageName != "com.simplemobiletools.smsmessenger" && packageName != "com.simplemobiletools.calendar.pro") {
return contacts
}