Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a35c1826 authored by Adam Powell's avatar Adam Powell Committed by android-build-merger
Browse files

Always report visibility to new ImageView drawables

am: 37b44dd5

Change-Id: Ib8e1cc5d3ee91aae74875cc70fda9d8d4104892e
parents 33368011 37b44dd5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -933,9 +933,8 @@ public class ImageView extends View {
            if (d.isStateful()) {
                d.setState(getDrawableState());
            }
            if (isAttachedToWindow()) {
                d.setVisible(getWindowVisibility() == VISIBLE && isShown(), true);
            }
            d.setVisible(isAttachedToWindow() && getWindowVisibility() == VISIBLE && isShown(),
                    true);
            d.setLevel(mLevel);
            mDrawableWidth = d.getIntrinsicWidth();
            mDrawableHeight = d.getIntrinsicHeight();