implement EditText.removeTextChangedListener()

This commit is contained in:
Julian Winkler
2024-07-20 22:04:37 +02:00
parent 72c47703b9
commit 45801d8f17
3 changed files with 41 additions and 9 deletions

View File

@@ -20,6 +20,7 @@ public class EditText extends TextView {
protected native long native_constructor(Context context, AttributeSet attrs);
protected native String native_getText(long widget);
protected native void native_addTextChangedListener(long widget, TextWatcher watcher);
protected native void native_removeTextChangedListener(long widget, TextWatcher watcher);
protected native void native_setOnEditorActionListener(long widget, OnEditorActionListener l);
protected native void native_setText(long widget, String text);
@@ -38,6 +39,11 @@ public class EditText extends TextView {
@Override
public void setTextSize(float size) {}
@Override
public void removeTextChangedListener(TextWatcher watcher) {
native_removeTextChangedListener(widget, watcher);
}
@Override
public void addTextChangedListener(TextWatcher watcher) {
native_addTextChangedListener(widget, watcher);