diff options
Diffstat (limited to 'core/java/android/view/View.java')
-rw-r--r-- | core/java/android/view/View.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index f60e2f8..04aafc1 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -3582,7 +3582,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @param attrs The attributes of the XML tag that is inflating the view. * @see #View(Context, AttributeSet, int) */ - public View(Context context, AttributeSet attrs) { + public View(Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); } @@ -3603,7 +3603,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * the view. Can be 0 to not look for defaults. * @see #View(Context, AttributeSet) */ - public View(Context context, AttributeSet attrs, int defStyleAttr) { + public View(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { this(context, attrs, defStyleAttr, 0); } @@ -3640,7 +3640,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * to not look for defaults. * @see #View(Context, AttributeSet, int) */ - public View(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { + public View(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) { this(context); final TypedArray a = context.obtainStyledAttributes( |