mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-20 13:30:38 +01:00
create some constants for apps with special handling
This commit is contained in:
parent
8b919078c8
commit
ef3a61714a
@ -63,9 +63,9 @@ fun SimpleActivity.startCall(contact: Contact) {
|
|||||||
fun SimpleActivity.showContactSourcePicker(currentSource: String, callback: (newSource: String) -> Unit) {
|
fun SimpleActivity.showContactSourcePicker(currentSource: String, callback: (newSource: String) -> Unit) {
|
||||||
ContactsHelper(this).getContactSources {
|
ContactsHelper(this).getContactSources {
|
||||||
val ignoredTypes = arrayListOf(
|
val ignoredTypes = arrayListOf(
|
||||||
"org.thoughtcrime.securesms", // Signal
|
SIGNAL_PACKAGE,
|
||||||
"org.telegram.messenger", // Telegram
|
TELEGRAM_PACKAGE,
|
||||||
"com.whatsapp" // WhatsApp
|
WHATSAPP_PACKAGE
|
||||||
)
|
)
|
||||||
|
|
||||||
val items = ArrayList<RadioItem>()
|
val items = ArrayList<RadioItem>()
|
||||||
|
@ -113,3 +113,8 @@ val localAccountTypes = arrayListOf("vnd.sec.contact.phone",
|
|||||||
"com.android.huawei.phone",
|
"com.android.huawei.phone",
|
||||||
"Local Phone Account"
|
"Local Phone Account"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// apps with special handling
|
||||||
|
const val TELEGRAM_PACKAGE = "org.telegram.messenger"
|
||||||
|
const val SIGNAL_PACKAGE = "org.thoughtcrime.securesms"
|
||||||
|
const val WHATSAPP_PACKAGE = "com.whatsapp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user