You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
prevent reference cycles between Java and native objects
This commit is contained in:
@@ -24,7 +24,8 @@ public class Button extends TextView {
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
public native final void native_setText(long widget, String text);
|
||||
protected native void native_setOnClickListener(long widget, OnClickListener l);
|
||||
@Override
|
||||
protected native void nativeSetOnClickListener(long widget);
|
||||
|
||||
@Override
|
||||
public void setText(CharSequence text) {
|
||||
@@ -37,11 +38,6 @@ public class Button extends TextView {
|
||||
@Override
|
||||
public void setTextSize(float size) {}
|
||||
|
||||
@Override
|
||||
public void setOnClickListener(final OnClickListener l) {
|
||||
native_setOnClickListener(widget, l);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user