allow Simple Commons accessing private contacts too

This commit is contained in:
tibbi 2022-05-27 18:24:10 +02:00 committed by Hosted Weblate
parent 96657700f5
commit 1436c85a29
No known key found for this signature in database
GPG key ID: A3FAAA06E6569B4C

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") {
if (packageName != "com.simplemobiletools.dialer" && packageName != "com.simplemobiletools.smsmessenger" && packageName != "com.simplemobiletools.calendar.pro" && packageName != "com.simplemobiletools.commons") {
return contacts
}