From 8449c8ea87fe2becb46453a8a1f75a7e4929a548 Mon Sep 17 00:00:00 2001 From: r-ca Date: Wed, 24 Jan 2024 12:40:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/feature/home/HomeTopFragment.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java b/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java index e27bcfbd..87b945cb 100644 --- a/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java +++ b/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java @@ -82,15 +82,12 @@ public class HomeTopFragment extends Fragment { Toolbar toolbar = view.findViewById(R.id.home_toolbar); toolbarSetup(toolbar, false, "ホーム"); - this.listItemAdapter = new ListItemAdapter(new DocumentSelectListener() { - @Override - public void onDocumentSelect(String documentId, String documentName) { - Intent intent = new Intent(getContext(), ViewerMainActivity.class); - Log.d("HomeTopFragment", "onDocumentSelect: " + documentId + " " + documentName); - intent.putExtra("documentId", documentId); - intent.putExtra("documentName", documentName); - startActivity(intent); - } + this.listItemAdapter = new ListItemAdapter((documentId, documentName) -> { + Intent intent = new Intent(getContext(), ViewerMainActivity.class); + Log.d("HomeTopFragment", "onDocumentSelect: " + documentId + " " + documentName); + intent.putExtra("documentId", documentId); + intent.putExtra("documentName", documentName); + startActivity(intent); }); recyclerView.setAdapter(listItemAdapter); recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); @@ -135,8 +132,6 @@ public class HomeTopFragment extends Fragment { if (showBackButton) { toolbar.setNavigationIcon(one.nem.lacerta.shared.ui.R.drawable.arrow_back_24px); toolbar.setNavigationOnClickListener(v -> { - //this.libraryItemPage = lacertaLibrary.getLibraryPage(this.libraryItemPage.getParentId(), 10).join(); - // Back Navigation.findNavController(requireView()).popBackStack(); }); } else {