[Android] Fix media not updated during a (first) scan
Nicolas Pomepuy
git at videolan.org
Thu Dec 10 08:23:10 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Dec 8 11:05:13 2020 +0100| [c869c7df419321b3a5f4b0e7f2a553afc2ed8e73] | committer: Nicolas Pomepuy
Fix media not updated during a (first) scan
> https://code.videolan.org/videolan/vlc-android/commit/c869c7df419321b3a5f4b0e7f2a553afc2ed8e73
---
.../src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt b/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt
index c9e21d151..d27347f3e 100644
--- a/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt
+++ b/application/vlc-android/src/org/videolan/vlc/providers/medialibrary/MedialibraryProvider.kt
@@ -96,7 +96,7 @@ abstract class MedialibraryProvider<T : MediaLibraryItem>(val context: Context,
}
fun refresh(): Boolean {
- if (medialibrary.isWorking || !medialibrary.isStarted || !this::dataSource.isInitialized) return false
+ if ((isRefreshing && medialibrary.isWorking) || !medialibrary.isStarted || !this::dataSource.isInitialized) return false
privateHeaders.clear()
if (!dataSource.isInvalid) {
isRefreshing = true
More information about the Android
mailing list