diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index 210e44258..ac3178dc7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -270,8 +270,10 @@ class MediaFetcher(val context: Context) { val medium = Medium(filename, file.absolutePath, isVideo, dateModified, dateTaken, size) val isAlreadyAdded = curMedia.any { it.path == file.absolutePath } - if (!isAlreadyAdded) + if (!isAlreadyAdded) { curMedia.add(medium) + context.scanPath(file.absolutePath) {} + } } }