From 9865790a98417ae542e0b6407201f8b45374051a Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 23 Jan 2024 04:07:45 +0900 Subject: [PATCH] =?UTF-8?q?Bundle=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/component/viewer/ViewerMainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java index 6ef85637..435e472c 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerMainActivity.java @@ -35,6 +35,7 @@ public class ViewerMainActivity extends AppCompatActivity { // Variables private static final String TAG = "ViewerMainActivity"; String documentId; + String documentName; @Override protected void onCreate(Bundle savedInstanceState) { @@ -50,6 +51,7 @@ public class ViewerMainActivity extends AppCompatActivity { Intent intent = getIntent(); try { documentId = intent.getStringExtra("documentId"); + documentName = intent.getStringExtra("documentName"); } catch (Exception e) { logger.error(TAG, "Failed to get documentId from intent"); @@ -60,7 +62,7 @@ public class ViewerMainActivity extends AppCompatActivity { // Navigation getSupportFragmentManager().beginTransaction() - .replace(R.id.nav_host_fragment, ComponentViewerTopFragment.newInstance(documentId)) + .replace(R.id.nav_host_fragment, ComponentViewerTopFragment.newInstance(documentId, documentName)) .commit(); } } \ No newline at end of file