From 8f0bdbb89a6956eb29a52e0935dad95b47c2a7fc Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 15:15:33 +0900 Subject: [PATCH] =?UTF-8?q?hasCombined=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/feature/library/DocumentSelectListener.java | 2 +- .../one/nem/lacerta/feature/library/LibraryPageFragment.java | 3 ++- .../java/one/nem/lacerta/feature/library/ListItemAdapter.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentSelectListener.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentSelectListener.java index 5aa5294a..67dbc46f 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentSelectListener.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentSelectListener.java @@ -2,5 +2,5 @@ package one.nem.lacerta.feature.library; public interface DocumentSelectListener { void onFolderSelected(String folderId, String folderName); - void onDocumentSelected(String documentId, String documentName); + void onDocumentSelected(String documentId, String documentName, boolean hasCombined); } diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java index e23d2089..7a37e9f1 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java @@ -164,11 +164,12 @@ public class LibraryPageFragment extends Fragment { } @Override - public void onDocumentSelected(String documentId, String documentName) { + public void onDocumentSelected(String documentId, String documentName, boolean hasCombined) { Intent intent = new Intent(getContext(), ViewerMainActivity.class); logger.debug("LibraryTopFragment", "Document selected! documentId: " + documentId + ", documentName: " + documentName); intent.putExtra("documentId", documentId); intent.putExtra("documentName", documentName); + intent.putExtra("hasCombined", hasCombined); startActivity(intent); } }); diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/ListItemAdapter.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/ListItemAdapter.java index c28e61ec..57edf131 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/ListItemAdapter.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/ListItemAdapter.java @@ -45,7 +45,7 @@ public class ListItemAdapter extends RecyclerView.Adapter { if (listItem.getItemType() == ListItemType.ITEM_TYPE_DOCUMENT) { - listener.onDocumentSelected(listItem.getItemId(), listItem.getTitle()); + listener.onDocumentSelected(listItem.getItemId(), listItem.getTitle(), listItem.getHasCombined()); } else if (listItem.getItemType() == ListItemType.ITEM_TYPE_FOLDER) { listener.onFolderSelected(listItem.getItemId(), listItem.getTitle());