Compare commits

...
Author SHA1 Message Date
r-ca 8449c8ea87 リファクタ 2024-01-24 12:40:58 +09:00
ろむねこ ab5a8bfa87 Merge pull request #113 from lacerta-doc/submit_jan23
23日に提出した状態に追従
2024-01-24 12:37:26 +09:00
ろむねこ bda8496259 Update README.md 2024-01-23 05:26:53 +09:00
ろむねこ 60f279d365 Merge pull request #100 from lacerta-doc/submit_jan23
Submit jan23
2024-01-23 05:25:02 +09:00
2 changed files with 2 additions and 6 deletions

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
# Lacerta # Lacerta
学習に便利な機能とGit-like VCSを持ったドキュメントスキャナ (Work In Progress) 学習に便利な機能とGit-like VCSを持ったドキュメントスキャナ (Work In Progress)
(グループワーク)
## モジュール設計 ## モジュール設計
![Untitled Diagram(2)(1) drawio(1)](https://github.com/lacerta-doc/Lacerta/assets/66072112/f9b9c40f-bed0-4ade-95c1-50e28df68f35) ![Untitled Diagram(2)(1) drawio(1)](https://github.com/lacerta-doc/Lacerta/assets/66072112/f9b9c40f-bed0-4ade-95c1-50e28df68f35)
@@ -82,15 +82,12 @@ public class HomeTopFragment extends Fragment {
Toolbar toolbar = view.findViewById(R.id.home_toolbar); Toolbar toolbar = view.findViewById(R.id.home_toolbar);
toolbarSetup(toolbar, false, "ホーム"); toolbarSetup(toolbar, false, "ホーム");
this.listItemAdapter = new ListItemAdapter(new DocumentSelectListener() { this.listItemAdapter = new ListItemAdapter((documentId, documentName) -> {
@Override
public void onDocumentSelect(String documentId, String documentName) {
Intent intent = new Intent(getContext(), ViewerMainActivity.class); Intent intent = new Intent(getContext(), ViewerMainActivity.class);
Log.d("HomeTopFragment", "onDocumentSelect: " + documentId + " " + documentName); Log.d("HomeTopFragment", "onDocumentSelect: " + documentId + " " + documentName);
intent.putExtra("documentId", documentId); intent.putExtra("documentId", documentId);
intent.putExtra("documentName", documentName); intent.putExtra("documentName", documentName);
startActivity(intent); startActivity(intent);
}
}); });
recyclerView.setAdapter(listItemAdapter); recyclerView.setAdapter(listItemAdapter);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
@@ -135,8 +132,6 @@ public class HomeTopFragment extends Fragment {
if (showBackButton) { if (showBackButton) {
toolbar.setNavigationIcon(one.nem.lacerta.shared.ui.R.drawable.arrow_back_24px); toolbar.setNavigationIcon(one.nem.lacerta.shared.ui.R.drawable.arrow_back_24px);
toolbar.setNavigationOnClickListener(v -> { toolbar.setNavigationOnClickListener(v -> {
//this.libraryItemPage = lacertaLibrary.getLibraryPage(this.libraryItemPage.getParentId(), 10).join();
// Back
Navigation.findNavController(requireView()).popBackStack(); Navigation.findNavController(requireView()).popBackStack();
}); });
} else { } else {