Always report visibility to new ImageView drawables

am: 37b44dd592

Change-Id: Ib8e1cc5d3ee91aae74875cc70fda9d8d4104892e
This commit is contained in:
Adam Powell
2016-08-24 23:12:27 +00:00
committed by android-build-merger

View File

@@ -933,9 +933,8 @@ public class ImageView extends View {
if (d.isStateful()) { if (d.isStateful()) {
d.setState(getDrawableState()); d.setState(getDrawableState());
} }
if (isAttachedToWindow()) { d.setVisible(isAttachedToWindow() && getWindowVisibility() == VISIBLE && isShown(),
d.setVisible(getWindowVisibility() == VISIBLE && isShown(), true); true);
}
d.setLevel(mLevel); d.setLevel(mLevel);
mDrawableWidth = d.getIntrinsicWidth(); mDrawableWidth = d.getIntrinsicWidth();
mDrawableHeight = d.getIntrinsicHeight(); mDrawableHeight = d.getIntrinsicHeight();