mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Cleanup setImageBitmap
commit_hash:a3c35cb3eeffce54cbf5d761dd2e9b503be31d18
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user