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