mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
LoggerをInject(など)
This commit is contained in:
parent
37bc68fef9
commit
85206956e7
|
@ -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<DocumentMeta> documentMetas = document.getAllDocumentMetas(100);
|
||||
|
||||
|
||||
|
||||
ArrayList<DebugMenuDocumentListItem> 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user