21 lines
521 B
Java
21 lines
521 B
Java
package org.thoughtcrime.securesms.contactshare;
|
|
|
|
import android.text.Editable;
|
|
import android.text.TextWatcher;
|
|
|
|
public abstract class SimpleTextWatcher implements TextWatcher {
|
|
|
|
@Override
|
|
public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
|
|
|
|
@Override
|
|
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
|
onTextChanged(s.toString());
|
|
}
|
|
|
|
@Override
|
|
public void afterTextChanged(Editable s) { }
|
|
|
|
public abstract void onTextChanged(String text);
|
|
}
|