タブタイトル更新メソッド作成

This commit is contained in:
r-ca 2024-01-29 02:44:15 +09:00
parent e85c8a7ed0
commit d691ee0126
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -184,6 +184,13 @@ public class ViewerContainerFragment extends Fragment {
builder.show(); builder.show();
} }
private void updateTabTitle(int position, String title) {
ArrayList<String> fragmentTitleList = viewerViewPagerAdapter.getFragmentTitleList();
fragmentTitleList.set(position, title);
viewerViewPagerAdapter.setFragmentTitleList(fragmentTitleList);
viewerViewPagerAdapter.notifyItemChanged(position);
}
/** /**
* Toolbarをinitする * Toolbarをinitする
* *