code: private void obtainNextButtonText() {
          CharSequence text;
  
          try {
              text = ThemeUtil.getText(this, R.attr.nextButtonText);
          } catch (NotFoundException e) {
              text = getText(R.string.next_button_text);
          }
  
          setNextButtonText(text);
      }
docs: Obtains the text of the next button from the activity's theme.