From d691ee0126cb58ad25e07c2584e44d915609c47a Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 02:44:15 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=82=BF=E3=82=A4=E3=83=88?= =?UTF-8?q?=E3=83=AB=E6=9B=B4=E6=96=B0=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89?= =?UTF-8?q?=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/component/viewer/ViewerContainerFragment.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java index 7054fe87..ff1834e6 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerContainerFragment.java @@ -184,6 +184,13 @@ public class ViewerContainerFragment extends Fragment { builder.show(); } + private void updateTabTitle(int position, String title) { + ArrayList fragmentTitleList = viewerViewPagerAdapter.getFragmentTitleList(); + fragmentTitleList.set(position, title); + viewerViewPagerAdapter.setFragmentTitleList(fragmentTitleList); + viewerViewPagerAdapter.notifyItemChanged(position); + } + /** * Toolbarをinitする *