diff --git a/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeActivityModule.kt b/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeActivityModule.kt index 8368dfa81f53d8f2b5bcccb2c5c9c89ec48572f3..ea8f72ef2d829b7f100782c0fd68069e26f797c6 100644 --- a/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeActivityModule.kt +++ b/presentation/src/main/java/com/moez/QKSMS/feature/compose/ComposeActivityModule.kt @@ -18,8 +18,10 @@ */ package com.moez.QKSMS.feature.compose +import android.content.ContentResolver import android.content.Intent import android.net.Uri +import androidx.core.net.toUri import androidx.lifecycle.ViewModel import com.google.android.mms.ContentType import com.moez.QKSMS.injection.ViewModelKey @@ -107,6 +109,10 @@ class ComposeActivityModule { if (data?.contains('%') == true) { return URLDecoder.decode(data, "UTF-8") } + + if (ContentResolver.SCHEME_CONTENT.equals(data?.toUri()?.scheme)) { + return null + } return data }