@ NonNull private TextWatcher createTextChangedListener ( ) { return new TextWatcher ( ) { @ Override public void beforeTextChanged ( final CharSequence text , final int start , final int count , final int after ) { } @ Override public void afterTextChanged ( final Editable text ) { } @ Override public void onTextChanged ( final CharSequence text , final int start , final int before , final int count ) { EditTextDialogDecorator . this . text = text ; if ( validateOnValueChange ) { validate ( ) ; } } } ; }
Creates and returns a listener which allows to observe when the text of the dialog s edit text has changed .