mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add save-as-you-compose drafts.
This commit is contained in:
@@ -3,6 +3,8 @@ package org.thoughtcrime.securesms.contactshare;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
public abstract class SimpleTextWatcher implements TextWatcher {
|
||||
|
||||
@Override
|
||||
@@ -10,11 +12,15 @@ public abstract class SimpleTextWatcher implements TextWatcher {
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
onTextChanged(s.toString());
|
||||
onTextChanged(s);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) { }
|
||||
|
||||
public abstract void onTextChanged(String text);
|
||||
public void onTextChanged(@NonNull CharSequence text) {
|
||||
onTextChanged(text.toString());
|
||||
}
|
||||
|
||||
public void onTextChanged(@NonNull String text) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user