mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
hotfix: 型の変更に追従
This commit is contained in:
parent
5c3d811979
commit
73c310ee01
|
@ -57,13 +57,13 @@ public class DebugMenuLibraryItemListPageFragment extends Fragment {
|
||||||
// Inflate the layout for this fragment
|
// Inflate the layout for this fragment
|
||||||
View view = inflater.inflate(R.layout.fragment_debug_menu_library_item_list_page, container, false);
|
View view = inflater.inflate(R.layout.fragment_debug_menu_library_item_list_page, container, false);
|
||||||
|
|
||||||
LibraryItemPage libraryItemPage = lacertaLibrary.getRecentDocument(10);
|
ArrayList<ListItem> listItems = lacertaLibrary.getRecentDocument(10);
|
||||||
for (ListItem listItem : libraryItemPage.getListItems()) {
|
for (ListItem listItem : listItems) {
|
||||||
System.out.println(listItem.getTitle());
|
System.out.println(listItem.getTitle());
|
||||||
}
|
}
|
||||||
|
|
||||||
RecyclerView recyclerView = view.findViewById(R.id.item_recycler_view);
|
RecyclerView recyclerView = view.findViewById(R.id.item_recycler_view);
|
||||||
recyclerView.setAdapter(new ItemAdapter(libraryItemPage.getListItems()));
|
recyclerView.setAdapter(new ItemAdapter(listItems));
|
||||||
|
|
||||||
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user