code: private void reInflateTabLayout() {
          View rootView = getRootView();
  
          if (rootView != null) {
              View headerContentContainer = rootView.findViewById(R.id.header_content_container);
              View contentContainer = rootView.findViewById(R.id.content_container);
  
              if (headerContentContainer != null && contentContainer != null) {
                  inflateTabLayout(headerContentContainer, contentContainer);
              }
          }
      }
docs: Re-inflates the tab layout, which indicates the currently shown fragment, if the dialog has
  already been created.