From f34fff62a84189e793c5afe5e43e084a6bd17e5e Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 6 May 2022 07:55:29 +0200 Subject: [PATCH] Fix #10176 Signed-off-by: tobiasKaminsky --- .../owncloud/android/ui/adapter/GalleryAdapter.kt | 2 +- .../android/ui/asynctasks/GallerySearchTask.java | 12 ++++++++++-- .../android/ui/fragment/GalleryFragment.java | 4 ++-- 3 files changed, 13 insertions(+), 5 deletions(-) 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 ee6ae05dd5..d2d3a19efa 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 @@ -152,7 +152,7 @@ class GalleryAdapter( } @SuppressLint("NotifyDataSetChanged") - fun showAllGalleryItems(storageManager: FileDataStorageManager) { + fun showAllGalleryItems() { val items = storageManager.allGalleryItems files = items diff --git a/app/src/main/java/com/owncloud/android/ui/asynctasks/GallerySearchTask.java b/app/src/main/java/com/owncloud/android/ui/asynctasks/GallerySearchTask.java index 1d91f56073..821dfbb72c 100644 --- a/app/src/main/java/com/owncloud/android/ui/asynctasks/GallerySearchTask.java +++ b/app/src/main/java/com/owncloud/android/ui/asynctasks/GallerySearchTask.java @@ -43,6 +43,8 @@ import java.util.Date; import java.util.List; import java.util.Map; +import androidx.lifecycle.Lifecycle; + public class GallerySearchTask extends AsyncTask { private final User user; @@ -100,7 +102,11 @@ public class GallerySearchTask extends AsyncTask