1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00

Android: Create URL object without checking the filepath in Process::openDocument() to avoid hitting an assertion when opening URLs

This commit is contained in:
ed 2018-12-10 11:36:26 +00:00
parent 2e3a41cbb1
commit 9bad19151b

View file

@ -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<jstring> action (javaString ("android.intent.action.VIEW"));