Loading core/java/android/widget/ImageView.java +11 −11 Original line number Diff line number Diff line Loading @@ -386,7 +386,8 @@ public class ImageView extends View { */ @android.view.RemotableViewMethod public void setImageResource(int resId) { if (mUri != null || mResource != 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; final int oldHeight = mDrawableHeight; Loading @@ -401,7 +402,6 @@ public class ImageView extends View { } invalidate(); } } /** * Sets the content of this ImageView to the specified Uri. Loading Loading
core/java/android/widget/ImageView.java +11 −11 Original line number Diff line number Diff line Loading @@ -386,7 +386,8 @@ public class ImageView extends View { */ @android.view.RemotableViewMethod public void setImageResource(int resId) { if (mUri != null || mResource != 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; final int oldHeight = mDrawableHeight; Loading @@ -401,7 +402,6 @@ public class ImageView extends View { } invalidate(); } } /** * Sets the content of this ImageView to the specified Uri. Loading