Commit c869c7df authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix media not updated during a (first) scan

parent 176d77d7
Pipeline #47926 passed with stage
in 18 minutes and 58 seconds
......@@ -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
......
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