1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Android: avoid an assertion in URL::isLocalFile().

This commit is contained in:
Lukasz Kozakiewicz 2017-12-21 13:19:41 +01:00
parent 3c370259a9
commit ce0ab63f57

View file

@ -73,8 +73,13 @@ bool URL::isLocalFile() const
if (getScheme() == "file")
return true;
auto file = AndroidContentUriResolver::getLocalFileFromContentUri (*this);
return (file != File());
if (getScheme() == "content")
{
auto file = AndroidContentUriResolver::getLocalFileFromContentUri (*this);
return (file != File());
}
return false;
}
File URL::getLocalFile() const