code: private void adaptButtonBarVisibility() {
          if (buttonBar != null && buttonBarShadowView != null) {
              buttonBar.setVisibility(isButtonBarShown() ? View.VISIBLE : View.GONE);
              buttonBarShadowView.setVisibility(isButtonBarShown() ? View.VISIBLE : View.GONE);
  
              if (isButtonBarShown() && !isSplitScreen()) {
                  adaptNavigationVisibility();
              }
  
              adaptNavigationEnabledState();
              adaptWizardButtonVisibilities();
          }
      }
docs: Adapts the visibility of the button bar, which is shown, when the activity is used as a
  wizard.