summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/ImageView.java
diff options
context:
space:
mode:
authorScott Kennedy <skennedy@google.com>2015-02-10 23:15:39 -0800
committerScott Kennedy <skennedy@google.com>2015-02-10 23:15:39 -0800
commit76c382ed6799f11df9d3d8da0f63411dba68a0e2 (patch)
treee06bc3303fd4e0f913e2f9726a92f36147530089 /core/java/android/widget/ImageView.java
parentcd25e1c6df8d38d908fe261120f3a38edb2a4aa4 (diff)
downloadframeworks_base-76c382ed6799f11df9d3d8da0f63411dba68a0e2.zip
frameworks_base-76c382ed6799f11df9d3d8da0f63411dba68a0e2.tar.gz
frameworks_base-76c382ed6799f11df9d3d8da0f63411dba68a0e2.tar.bz2
Add @Nullable to AttributeSet in a couple constructors
Change-Id: I184113680c5dc867b353df81961e93523b91bbc5
Diffstat (limited to 'core/java/android/widget/ImageView.java')
-rw-r--r--core/java/android/widget/ImageView.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java
index 757038c..dd9bdb6 100644
--- a/core/java/android/widget/ImageView.java
+++ b/core/java/android/widget/ImageView.java
@@ -127,15 +127,16 @@ public class ImageView extends View {
initImageView();
}
- public ImageView(Context context, AttributeSet attrs) {
+ public ImageView(Context context, @Nullable AttributeSet attrs) {
this(context, attrs, 0);
}
- public ImageView(Context context, AttributeSet attrs, int defStyleAttr) {
+ public ImageView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
this(context, attrs, defStyleAttr, 0);
}
- public ImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
+ public ImageView(Context context, @Nullable AttributeSet attrs, int defStyleAttr,
+ int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
initImageView();