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

Commit 4a0c57f6 authored by tibbi's avatar tibbi
Browse files

try disabling the creation of Media id when sharing paths

parent 79f585fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ fun Context.getPermissionString(id: Int) = when (id) {
fun Context.getFilePublicUri(file: File, applicationId: String): Uri {
    // try getting a media content uri first, like content://media/external/images/media/438
    // if media content uri is null, get our custom uri like content://com.simplemobiletools.gallery.provider/external_files/emulated/0/DCIM/IMG_20171104_233915.jpg
    return getMediaContentUri(file.absolutePath) ?: FileProvider.getUriForFile(this, "$applicationId.provider", file)
    return /*getMediaContentUri(file.absolutePath) ?: */FileProvider.getUriForFile(this, "$applicationId.provider", file)
}

fun Context.getMediaContentUri(path: String): Uri? {