Skip to content

Instantly share code, notes, and snippets.

@noaht11
Created September 1, 2016 05:22
Show Gist options
  • Save noaht11/1da30206797cad49bdad2038e82fcb37 to your computer and use it in GitHub Desktop.
Save noaht11/1da30206797cad49bdad2038e82fcb37 to your computer and use it in GitHub Desktop.
@Override
public void afterTextChanged(Editable message) {
if(mIgnoreTextChangedEvents) {
return;
}
// Avoid triggering text changed events from changes we make in this method
mIgnoreTextChangedEvents = true;
// Perform text changes
// Pass event to ChipTerminatorHandler which may make programmatic changes to the text
mIgnoreTextChangedEvents = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment