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

Commit 0512703c authored by tibbi's avatar tibbi
Browse files

fix getting uri for files containing a colon

parent 11baacc9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -273,7 +273,8 @@ fun Context.ensurePublicUri(path: String, applicationId: String): Uri? {
        if (uri.scheme == "content") {
            uri
        } else {
            val file = File(uri.path)
            val newPath = if (uri.toString().startsWith("/")) uri.toString() else uri.path
            val file = File(newPath)
            getFilePublicUri(file, applicationId)
        }
    }