Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87989233 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Merge branch '7057-main-image_share' into 'main'

Exclude Content from uris

See merge request e/os/Message!74
parents 03355c08 3d2c2d13
Loading
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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
    }