diff --git a/src/main/java/org/amahi/anywhere/adapter/RecentFilesAdapter.java b/src/main/java/org/amahi/anywhere/adapter/RecentFilesAdapter.java index 6015629ca..16ec3e885 100644 --- a/src/main/java/org/amahi/anywhere/adapter/RecentFilesAdapter.java +++ b/src/main/java/org/amahi/anywhere/adapter/RecentFilesAdapter.java @@ -83,9 +83,8 @@ private void setUpViewHolder(RecentFile file, RecentFilesViewHolder fileHolder) } private void setUpViewHolderListeners(RecentFilesViewHolder fileHolder) { - fileHolder.moreOptions.setOnClickListener(view -> { - mListener.onMoreOptionClick(fileHolder.itemView, fileHolder.getAdapterPosition()); - }); + fileHolder.itemView.setOnClickListener(view -> mListener.onItemClick(fileHolder.itemView, fileHolder.getAdapterPosition())); + fileHolder.moreOptions.setOnClickListener(view -> mListener.onMoreOptionClick(fileHolder.itemView, fileHolder.getAdapterPosition())); } private void setImageIcon(RecentFile file, ImageView fileIconView) {