Update contacts package name

This commit is contained in:
Naveen 2024-01-19 21:59:59 +05:30
parent 2cd6aacb61
commit 6157bc5689
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3
2 changed files with 4 additions and 4 deletions

View file

@ -25,8 +25,8 @@
tools:node="remove" />
<queries>
<package android:name="com.simplemobiletools.contacts.pro.debug" />
<package android:name="com.simplemobiletools.contacts.pro" />
<package android:name="org.fossify.contacts.debug" />
<package android:name="org.fossify.contacts" />
</queries>
<uses-feature android:name="android.hardware.telephony" />

View file

@ -52,8 +52,8 @@ fun Activity.launchViewIntent(uri: Uri, mimetype: String, filename: String) {
}
fun Activity.startContactDetailsIntent(contact: SimpleContact) {
val simpleContacts = "com.simplemobiletools.contacts.pro"
val simpleContactsDebug = "com.simplemobiletools.contacts.pro.debug"
val simpleContacts = "org.fossify.contacts"
val simpleContactsDebug = "org.fossify.contacts.debug"
if (contact.rawId > 1000000 && contact.contactId > 1000000 && contact.rawId == contact.contactId &&
(isPackageInstalled(simpleContacts) || isPackageInstalled(simpleContactsDebug))
) {