From b63e9a6747b26764e59c42d31489a5321a06cf12 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sat, 20 Jan 2024 17:46:23 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/feature/home/ListItemAdapter.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/feature/home/src/main/java/one/nem/lacerta/feature/home/ListItemAdapter.java b/feature/home/src/main/java/one/nem/lacerta/feature/home/ListItemAdapter.java index 1c2698d3..9d2fef13 100644 --- a/feature/home/src/main/java/one/nem/lacerta/feature/home/ListItemAdapter.java +++ b/feature/home/src/main/java/one/nem/lacerta/feature/home/ListItemAdapter.java @@ -1,5 +1,6 @@ package one.nem.lacerta.feature.home; +import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -11,6 +12,7 @@ import androidx.recyclerview.widget.RecyclerView; import java.util.ArrayList; +import one.nem.lacerta.component.viewer.ViewerMainActivity; import one.nem.lacerta.model.ListItem; public class ListItemAdapter extends RecyclerView.Adapter{ @@ -35,6 +37,12 @@ public class ListItemAdapter extends RecyclerView.Adapter { + Intent intent = new Intent(v.getContext(), ViewerMainActivity.class); + intent.putExtra("documentId", listItem.getItemId()); + v.getContext().startActivity(intent); + }); } @Override