1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

Android: Fix file loading in DSP demos

This commit is contained in:
reuk 2022-11-08 16:08:39 +00:00
parent e3e8b8a91d
commit 06a71ccce0
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
3 changed files with 34 additions and 55 deletions

View file

@ -48,22 +48,6 @@
#include "../Assets/DemoUtilities.h"
inline std::unique_ptr<InputSource> makeInputSource (const URL& url)
{
#if JUCE_ANDROID
if (auto doc = AndroidDocument::fromDocument (url))
return std::make_unique<AndroidDocumentInputSource> (doc);
#endif
#if ! JUCE_IOS
if (url.isLocalFile())
return std::make_unique<FileInputSource> (url.getLocalFile());
#endif
return std::make_unique<URLInputSource> (url);
}
//==============================================================================
class DemoThumbnailComp : public Component,
public ChangeListener,
public FileDragAndDropTarget,