diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt index d3990529..0fbc42af 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt @@ -2,8 +2,6 @@ package com.simplemobiletools.contacts.pro.activities import android.content.ContentUris import android.content.Intent -import android.graphics.Color -import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.provider.ContactsContract import android.view.View @@ -11,10 +9,7 @@ import android.view.WindowManager import android.widget.RelativeLayout import com.simplemobiletools.commons.dialogs.ConfirmationDialog import com.simplemobiletools.commons.extensions.* -import com.simplemobiletools.commons.helpers.CONTACT_ID -import com.simplemobiletools.commons.helpers.IS_PRIVATE -import com.simplemobiletools.commons.helpers.PERMISSION_READ_CONTACTS -import com.simplemobiletools.commons.helpers.ensureBackgroundThread +import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.contacts.pro.R import com.simplemobiletools.contacts.pro.dialogs.CallConfirmationDialog import com.simplemobiletools.contacts.pro.dialogs.ChooseSocialDialog diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Constants.kt index 42606cbd..2713b1d8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Constants.kt @@ -108,11 +108,13 @@ const val TELEGRAM_PACKAGE = "org.telegram.messenger" const val SIGNAL_PACKAGE = "org.thoughtcrime.securesms" const val WHATSAPP_PACKAGE = "com.whatsapp" const val VIBER_PACKAGE = "com.viber.voip" +const val THREEMA_PACKAGE = "ch.threema.app" const val WHATSAPP = "whatsapp" const val SIGNAL = "signal" const val VIBER = "viber" const val TELEGRAM = "telegram" +const val THREEMA = "threema" const val SOCIAL_VOICE_CALL = 0 const val SOCIAL_VIDEO_CALL = 1 diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt index 478bb6ed..44337c93 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt @@ -748,7 +748,8 @@ class ContactsHelper(val context: Context) { val ignoredTypes = arrayListOf( SIGNAL_PACKAGE, TELEGRAM_PACKAGE, - WHATSAPP_PACKAGE + WHATSAPP_PACKAGE, + THREEMA_PACKAGE ) val contactSources = getContactSourcesSync()