This commit is contained in:
lucky 2022-02-11 04:06:15 +03:00
parent 2201bf11fa
commit ca19155cea

View file

@ -11,12 +11,10 @@ import androidx.annotation.RequiresPermission
class CallRedirectionService : CallRedirectionService() { class CallRedirectionService : CallRedirectionService() {
companion object { companion object {
private const val SIGNAL_MIMETYPE = private const val PREFIX = "vnd.android.cursor.item/vnd"
"vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.call" private const val SIGNAL_MIMETYPE = "$PREFIX.org.thoughtcrime.securesms.call"
private const val TELEGRAM_MIMETYPE = private const val TELEGRAM_MIMETYPE = "$PREFIX.org.telegram.messenger.android.call"
"vnd.android.cursor.item/vnd.org.telegram.messenger.android.call" private const val THREEMA_MIMETYPE = "$PREFIX.ch.threema.app.call"
private const val THREEMA_MIMETYPE =
"vnd.android.cursor.item/vnd.ch.threema.app.call"
private val MIMETYPES = mapOf( private val MIMETYPES = mapOf(
SIGNAL_MIMETYPE to 0, SIGNAL_MIMETYPE to 0,
TELEGRAM_MIMETYPE to 1, TELEGRAM_MIMETYPE to 1,