diff --git a/app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt b/app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt index 81f98eb05cdd..fb70e6919274 100644 --- a/app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt +++ b/app/src/main/java/com/owncloud/android/ui/adapter/GalleryAdapter.kt @@ -72,7 +72,10 @@ class GalleryAdapter( init { storageManager = transferServiceGetter.storageManager - setHasStableIds(true) + + if (files.isNotEmpty()) { + setHasStableIds(true) + } } override fun showFooters(): Boolean = false