From 96de5eb0a2db54ab5db5cc8b0b08992916022a6b Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 15 May 2026 08:14:02 +0200 Subject: [PATCH] Gallery: fix video thumnail generation Signed-off-by: tobiasKaminsky --- .../client/jobs/gallery/GalleryImageGenerationJob.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nextcloud/client/jobs/gallery/GalleryImageGenerationJob.kt b/app/src/main/java/com/nextcloud/client/jobs/gallery/GalleryImageGenerationJob.kt index 2e532c00ac88..5ca2202ea0aa 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/gallery/GalleryImageGenerationJob.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/gallery/GalleryImageGenerationJob.kt @@ -119,10 +119,12 @@ class GalleryImageGenerationJob(private val user: User, private val storageManag onNewThumbnail() - val local = decodeLocalThumbnail(file) - if (local != null) { - ThumbnailsCacheManager.addBitmapToCache(cacheKey, local) - return@withContext applyVideoOverlayIfNeeded(file, local) + if (file.isDown) { + val local = decodeLocalThumbnail(file) + if (local != null) { + ThumbnailsCacheManager.addBitmapToCache(cacheKey, local) + return@withContext applyVideoOverlayIfNeeded(file, local) + } } val remote = semaphore.withPermit { fetchFromServer(file) }