create some constants for apps with special handling

This commit is contained in:
tibbi 2018-10-26 13:40:00 +02:00
parent 8b919078c8
commit ef3a61714a
2 changed files with 8 additions and 3 deletions

View File

@ -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>()

View File

@ -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"