Cleanup setImageBitmap

commit_hash:a3c35cb3eeffce54cbf5d761dd2e9b503be31d18
This commit is contained in:
grechka62
2026-02-12 16:19:53 +03:00
parent 4e9fd2d2a9
commit cd89e4aa50
@@ -22,7 +22,6 @@ import com.yandex.div.core.view2.divs.wrapsContent
import com.yandex.div.core.view2.drawable.ScaleDrawable
import com.yandex.div.internal.widget.AspectImageView
import java.util.concurrent.Future
import kotlin.math.roundToInt
open class LoadableImageView(
context: Context,
@@ -126,7 +125,6 @@ open class LoadableImageView(
override fun setImageBitmap(bm: Bitmap?) {
val drawable = bm?.toDrawable(context.resources)
if (shouldScaleAccordingToDensity()) {
bm?.density = DisplayMetrics.DENSITY_DEFAULT
drawable?.setTargetDensity(DisplayMetrics.DENSITY_DEFAULT)
}
setImageDrawable(drawable)