From 39bcac29c24b15b47f52ceba485c3d4c65658a78 Mon Sep 17 00:00:00 2001 From: Chirag Jain Date: Mon, 10 Aug 2020 16:29:10 +0530 Subject: [PATCH] Add onItemClick listener in Recent Files (#610) --- .../java/org/amahi/anywhere/adapter/RecentFilesAdapter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) {