code: private void adaptHint() {
          if (textInputLayout != null) {
              textInputLayout.setHint(hint);
          } else if (editText != null) {
              editText.setHint(hint);
          }
      }
docs: Adapts the hint of the dialog's edit text widget.