code: private void adaptText() {
          if (editText != null) {
              editText.setText(text);
  
              if (text != null) {
                  editText.setSelection(text.length());
              }
          }
      }
docs: Adapts the text of the edit text widget, which is contained by the dialog.