From 85206956e73a49366964775a97a6d06e0238343d Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 18 Dec 2023 01:39:44 +0900 Subject: [PATCH] =?UTF-8?q?Logger=E3=82=92Inject(=E3=81=AA=E3=81=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugMenuDocumentTesterListFragment.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterListFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterListFragment.java index 6fe60294..03d2b703 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterListFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuDocumentTesterListFragment.java @@ -19,6 +19,7 @@ import one.nem.lacerta.data.Document; import one.nem.lacerta.feature.debug.common.adapter.DebugMenuDocumentListItemAdapter; import one.nem.lacerta.feature.debug.common.model.DebugMenuDocumentListItem; import one.nem.lacerta.model.document.DocumentMeta; +import one.nem.lacerta.utils.LacertaLogger; /** * A simple {@link Fragment} subclass. @@ -32,6 +33,9 @@ public class DebugMenuDocumentTesterListFragment extends Fragment { @Inject Document document; + @Inject + LacertaLogger logger; + public DebugMenuDocumentTesterListFragment() { // Required empty public constructor } @@ -59,14 +63,18 @@ public class DebugMenuDocumentTesterListFragment extends Fragment { ArrayList documentMetas = document.getAllDocumentMetas(100); + + ArrayList debugMenuDocumentListItems = new ArrayList<>(); for (DocumentMeta documentMeta : documentMetas) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - debugMenuDocumentListItems.add(new DebugMenuDocumentListItem(documentMeta.getTitle(), "Internal Id: " + documentMeta.getId(), simpleDateFormat.format(documentMeta.getUpdatedAt()))); } + DebugMenuDocumentListItemAdapter adapter = new DebugMenuDocumentListItemAdapter(debugMenuDocumentListItems); + recyclerView.setAdapter(adapter); + return view; } } \ No newline at end of file