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