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:
parent
3c370259a9
commit
ce0ab63f57
1 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue