use of com.novoda.notils.text.SimpleTextWatcher in project Memento-Calendar by alexstyl.
the class ContactSuggestionViewHolder method bind.
public void bind(final ContactDetailsListener listener) {
contactSuggestionView.setOnContactSelectedListener(new ContactSuggestionView.OnContactSelectedListener() {
@Override
public void onContactSelected(Contact contact) {
listener.onContactSelected(contact);
}
@Override
public void onContactCleared() {
listener.onContactCleared();
}
});
contactSuggestionView.addTextChangedListener(new SimpleTextWatcher() {
@Override
public void afterTextChanged(Editable text) {
listener.onNameModified(text.toString());
}
});
}
Aggregations