mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
Long clickのリスナーを追加
This commit is contained in:
parent
8731855849
commit
83cadceefa
|
@ -44,8 +44,9 @@ public class ViewerBodyAdapter extends RecyclerView.Adapter<ViewerBodyAdapter.Vi
|
||||||
public void onBindViewHolder(@NonNull ViewerBodyAdapter.ViewHolder holder, int position) {
|
public void onBindViewHolder(@NonNull ViewerBodyAdapter.ViewHolder holder, int position) {
|
||||||
Bitmap bitmap = pages.get(position).getBitmap();
|
Bitmap bitmap = pages.get(position).getBitmap();
|
||||||
holder.image.setImageBitmap(bitmap);
|
holder.image.setImageBitmap(bitmap);
|
||||||
holder.itemView.setOnClickListener(v -> {
|
holder.itemView.setOnLongClickListener(v -> {
|
||||||
|
listener.onItemLongClick(pages.get(position).getFileName(), position);
|
||||||
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user