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 a9eb09d180..e1e4070963 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 @@ -39,6 +39,7 @@ import com.owncloud.android.datamodel.FileDataStorageManager import com.owncloud.android.datamodel.GalleryItems import com.owncloud.android.datamodel.OCFile import com.owncloud.android.ui.activity.ComponentsGetter +import com.owncloud.android.ui.fragment.SearchType import com.owncloud.android.ui.interfaces.OCFileListFragmentInterface import com.owncloud.android.utils.DisplayUtils import com.owncloud.android.utils.FileSortOrder @@ -110,7 +111,11 @@ class GalleryAdapter( val itemViewHolder = holder as GalleryItemViewHolder val ocFile = files[section].files[relativePosition] - ocFileListDelegate.bindGridViewHolder(itemViewHolder, ocFile) + ocFileListDelegate.bindGridViewHolder( + itemViewHolder, + ocFile, + SearchType.GALLERY_SEARCH + ) } } diff --git a/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java b/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java index 142226672a..e9fab85313 100644 --- a/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java +++ b/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java @@ -128,6 +128,7 @@ public class OCFileListAdapter extends RecyclerView.Adapter