From 83cadceefa9fc627edea1103f5ca6bbef6c41c2f Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 05:16:35 +0900 Subject: [PATCH] =?UTF-8?q?Long=20click=E3=81=AE=E3=83=AA=E3=82=B9?= =?UTF-8?q?=E3=83=8A=E3=83=BC=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/component/viewer/ViewerBodyAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyAdapter.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyAdapter.java index 8a430f96..398aaee7 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyAdapter.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyAdapter.java @@ -44,8 +44,9 @@ public class ViewerBodyAdapter extends RecyclerView.Adapter { - + holder.itemView.setOnLongClickListener(v -> { + listener.onItemLongClick(pages.get(position).getFileName(), position); + return true; }); }