From 9bad19151ba3872e5a6d6bddf38de56eff292047 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 10 Dec 2018 11:36:26 +0000 Subject: [PATCH] Android: Create URL object without checking the filepath in Process::openDocument() to avoid hitting an assertion when opening URLs --- modules/juce_core/native/juce_android_Files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_android_Files.cpp b/modules/juce_core/native/juce_android_Files.cpp index 0fbf0481b9..c000ab7176 100644 --- a/modules/juce_core/native/juce_android_Files.cpp +++ b/modules/juce_core/native/juce_android_Files.cpp @@ -629,7 +629,7 @@ bool File::moveToTrash() const JUCE_API bool JUCE_CALLTYPE Process::openDocument (const String& fileName, const String&) { - URL targetURL (File {fileName}); + URL targetURL (File::createFileWithoutCheckingPath (fileName)); auto* env = getEnv(); const LocalRef action (javaString ("android.intent.action.VIEW"));