From f0a03b7df60c6b0cf4c227875adc2c968e2d5408 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov <mail@dimitryivanov.ru> Date: Mon, 15 Apr 2019 12:56:45 +0300 Subject: [PATCH] AsyncDrawable placeholder bounds fix --- .../src/main/java/ru/noties/markwon/image/AsyncDrawable.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/markwon-core/src/main/java/ru/noties/markwon/image/AsyncDrawable.java b/markwon-core/src/main/java/ru/noties/markwon/image/AsyncDrawable.java index b9cdf235..9d180673 100644 --- a/markwon-core/src/main/java/ru/noties/markwon/image/AsyncDrawable.java +++ b/markwon-core/src/main/java/ru/noties/markwon/image/AsyncDrawable.java @@ -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