code: private void adaptTabLayoutVisibility() {
          if (tabLayout != null) {
              tabLayout.setVisibility(tabLayoutShown ? View.VISIBLE : View.GONE);
          }
      }
docs: Adapts the visibility of the tab layout, which indicates the currently shown fragment.