|
|
|
@@ -517,6 +517,10 @@ void FileOutputStream::flushInternal() |
|
|
|
status = getResultForErrno();
|
|
|
|
|
|
|
|
#if JUCE_ANDROID
|
|
|
|
// This stuff tells the OS to asynchronously update the metadata
|
|
|
|
// that the OS has cached aboud the file - this metadata is used
|
|
|
|
// when the device is acting as a USB drive, and unless it's explicitly
|
|
|
|
// refreshed, it'll get out of step with the real file.
|
|
|
|
const LocalRef<jstring> t (javaString (file.getFullPathName()));
|
|
|
|
android.activity.callVoidMethod (JuceAppActivity.scanFile, t.get());
|
|
|
|
#endif
|
|
|
|
|