Skip to content

Commit 68f3eb3

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Revert "Fix adjustViewBounds handling for ImageView"
This reverts commit b1271ac Revert this for now pending further investigation of bug 7248600 Change-Id: Ieb0a279fa2208f2aa575759dd6dd94476b471b8d
1 parent b1271ac commit 68f3eb3

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)