Skip to content
Snippets Groups Projects
Commit a87a43fe authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix reading intent from third party apps by converting it sooner

Fixes #2224
parent 75b500df
No related branches found
No related tags found
1 merge request!1134Crash fixes
Pipeline #151847 passed with stage
in 2 minutes and 39 seconds
......@@ -114,7 +114,7 @@ class StartActivity : FragmentActivity() {
val cd = intent.clipData
val item = if (cd != null && cd.itemCount > 0) cd.getItemAt(0) else null
if (item != null) {
var uri: Uri? = item.uri
var uri: Uri? = FileUtils.getUri(item.uri)
if (uri == null && item.text != null) uri = item.text.toString().toUri()
if (uri != null) {
MediaUtils.openMediaNoUi(uri)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment