code: private void adaptTabLayoutEnableState() {
          if (tabLayout != null) {
              LinearLayout tabStrip = ((LinearLayout) tabLayout.getChildAt(0));
              tabStrip.setEnabled(tabLayoutEnabled);
  
              for (int i = 0; i < tabStrip.getChildCount(); i++) {
                  tabStrip.getChildAt(i).setEnabled(tabLayoutEnabled);
              }
          }
      }
docs: Adapts the enable state of the tab layout, which indicates the currently shown fragment.