Skip to content

Commit ae26839

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Revert "Fix adjustViewBounds handling for ImageView"" into jb-mr1-dev
2 parents 5735b1b + 68f3eb3 commit ae26839

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/java/android/widget/ImageView.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
789789
if (resizeWidth) {
790790
int newWidth = (int)(desiredAspect * (heightSize - ptop - pbottom)) +
791791
pleft + pright;
792-
widthSize = resolveAdjustedSize(newWidth, mMaxWidth, widthMeasureSpec);
793792
if (newWidth <= widthSize) {
794793
widthSize = newWidth;
795794
done = true;
@@ -800,7 +799,6 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
800799
if (!done && resizeHeight) {
801800
int newHeight = (int)((widthSize - pleft - pright) / desiredAspect) +
802801
ptop + pbottom;
803-
heightSize = resolveAdjustedSize(newHeight, mMaxHeight, heightMeasureSpec);
804802
if (newHeight <= heightSize) {
805803
heightSize = newHeight;
806804
}

0 commit comments

Comments
 (0)