TextView: set default text to an empty String

This commit is contained in:
Julian Winkler
2025-01-27 20:30:11 +01:00
parent 32dcbe3131
commit a743361ae4

View File

@@ -28,7 +28,7 @@ import android.view.View;
public class TextView extends View { public class TextView extends View {
private ColorStateList colors = new ColorStateList(new int[][] {new int[0]}, new int[1]); private ColorStateList colors = new ColorStateList(new int[][] {new int[0]}, new int[1]);
private CharSequence text; private CharSequence text = "";
public TextView(Context context, AttributeSet attrs) { public TextView(Context context, AttributeSet attrs) {
this(context, attrs, 0); this(context, attrs, 0);