From 93e9791de57eb1ac128be64f3ba8d989edb96b28 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Mon, 18 Dec 2023 10:37:00 +0100 Subject: [PATCH] Fix tests Signed-off-by: alperozturk --- .../java/com/owncloud/android/ui/adapter/GalleryAdapter.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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