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
add missing Context attribute to all View constructors
This commit is contained in:
@@ -17,8 +17,8 @@ public class TextView extends View {
|
||||
id = _id;
|
||||
}
|
||||
|
||||
public TextView(AttributeSet attrs) {
|
||||
super(attrs);
|
||||
public TextView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
native_constructor(attrs);
|
||||
}
|
||||
@@ -44,6 +44,10 @@ public class TextView extends View {
|
||||
native_set_markup(1);
|
||||
}
|
||||
|
||||
public void setText(int resId) {
|
||||
setText(getContext().getResources().getText(resId));
|
||||
}
|
||||
|
||||
private native final void native_set_markup(int bool);
|
||||
|
||||
public native final void native_setText(String text);
|
||||
|
||||
Reference in New Issue
Block a user