AsyncDrawable placeholder bounds fix

This commit is contained in:
Dimitry Ivanov 2019-04-15 12:56:45 +03:00
parent f4e0ecc4fb
commit f0a03b7df6

View File

@ -45,10 +45,8 @@ public class AsyncDrawable extends Drawable {
// process placeholder bounds
if (placeholder.getBounds().isEmpty()) {
// set intrinsic bounds for both drawables (this one and placeholder)
final Rect rect = DrawableUtils.intrinsicBounds(placeholder);
placeholder.setBounds(rect);
setBounds(rect);
}
// apply placeholder immediately if we have one