diff options
| author | Tor Norbye <tnorbye@google.com> | 2013-05-30 16:48:33 -0700 |
|---|---|---|
| committer | Tor Norbye <tnorbye@google.com> | 2015-02-18 07:49:03 -0800 |
| commit | 7b9c912f536925ac6ec43935d6e97506851b33d6 (patch) | |
| tree | 8dd71557e2555fde0d506ef77c46dc29184e91c4 /core/java/android/widget/ImageView.java | |
| parent | 44bc07d8740058398d4009615681120168673dd8 (diff) | |
Add @ResourceInt annotations on APIs
Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
Diffstat (limited to 'core/java/android/widget/ImageView.java')
| -rw-r--r-- | core/java/android/widget/ImageView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/ImageView.java b/core/java/android/widget/ImageView.java index dd9bdb667dac..9831dca02d17 100644 --- a/core/java/android/widget/ImageView.java +++ b/core/java/android/widget/ImageView.java @@ -16,6 +16,7 @@ package android.widget; +import android.annotation.DrawableRes; import android.annotation.Nullable; import android.content.ContentResolver; import android.content.Context; @@ -387,7 +388,7 @@ public class ImageView extends View { * @attr ref android.R.styleable#ImageView_src */ @android.view.RemotableViewMethod - public void setImageResource(int resId) { + public void setImageResource(@DrawableRes int resId) { // The resource configuration may have changed, so we should always // try to load the resource even if the resId hasn't changed. final int oldWidth = mDrawableWidth; |
