Browse Source

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

tags/2021-05-28
ed 6 years ago
parent
commit
9bad19151b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/native/juce_android_Files.cpp

+ 1
- 1
modules/juce_core/native/juce_android_Files.cpp 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"));


Loading…
Cancel
Save