Skip to content

Commit

Permalink
Add onItemClick listener in Recent Files (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag-jn authored and cpg committed Aug 17, 2020
1 parent 0b06dfd commit 39bcac2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 39bcac2

Please sign in to comment.