|
23 | 23 | import android.content.Context; |
24 | 24 | import android.content.res.ColorStateList; |
25 | 25 | import android.content.res.TypedArray; |
| 26 | +import androidx.annotation.NonNull; |
26 | 27 | import androidx.annotation.Nullable; |
27 | 28 | import androidx.core.widget.CompoundButtonCompat; |
28 | 29 | import androidx.appcompat.widget.AppCompatRadioButton; |
@@ -52,15 +53,16 @@ public class MaterialRadioButton extends AppCompatRadioButton { |
52 | 53 | @Nullable private ColorStateList materialThemeColorsTintList; |
53 | 54 | private boolean useMaterialThemeColors; |
54 | 55 |
|
55 | | - public MaterialRadioButton(Context context) { |
| 56 | + public MaterialRadioButton(@NonNull Context context) { |
56 | 57 | this(context, null); |
57 | 58 | } |
58 | 59 |
|
59 | | - public MaterialRadioButton(Context context, @Nullable AttributeSet attrs) { |
| 60 | + public MaterialRadioButton(@NonNull Context context, @Nullable AttributeSet attrs) { |
60 | 61 | this(context, attrs, R.attr.radioButtonStyle); |
61 | 62 | } |
62 | 63 |
|
63 | | - public MaterialRadioButton(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { |
| 64 | + public MaterialRadioButton( |
| 65 | + @NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { |
64 | 66 | super(createThemedContext(context, attrs, defStyleAttr, DEF_STYLE_RES), attrs, defStyleAttr); |
65 | 67 | // Ensure we are using the correctly themed context rather than the context that was passed in. |
66 | 68 | context = getContext(); |
|
0 commit comments