Commit 77eda4b9 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Fix the constant return to the rootview when the application resign active (closes #14640)

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f505f503
......@@ -23,6 +23,7 @@ const float MediaTimerInterval = 2.f;
NSArray *_directoryFiles;
NSMutableDictionary *_addedFilesMapping;
NSTimer *_addMediaTimer;
NSArray *_discoveredFilePath;
}
@end
......@@ -306,9 +307,12 @@ const float MediaTimerInterval = 2.f;
}
}
}
for (id<VLCMediaFileDiscovererDelegate> delegate in _observers) {
if ([delegate respondsToSelector:@selector(mediaFilesFoundRequiringAdditionToStorageBackend:)]) {
[delegate mediaFilesFoundRequiringAdditionToStorageBackend:[filePaths copy]];
if (![_discoveredFilePath isEqualToArray:filePaths]) {
_discoveredFilePath = filePaths;
for (id<VLCMediaFileDiscovererDelegate> delegate in _observers) {
if ([delegate respondsToSelector:@selector(mediaFilesFoundRequiringAdditionToStorageBackend:)]) {
[delegate mediaFilesFoundRequiringAdditionToStorageBackend:[filePaths copy]];
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment