I need to catch the TextChange event from EditText when something is type. But I do not want it to fire when I change the value of the EditText in the action code.
What can I do?
private boolean listenForChanges = true; ... @Override public void afterTextChanged(Editable s) { if( listenForChanges ) { // Process edits here } } ... listenForChanges = false; myEditText.setText( "Some text" ); listenForChanges = true;
https://fooobar.com/questions/1461463/index.html