Revert "Reduce image target size since we are using fill"
This reverts commit c07d9da7
Reason for revert: Coil provides more precise target size control
compared to `ImageDecoder.setTargetSampleSize`.
This commit is contained in:
1 parent
b7c873a172
commit
2f1e0d030e
1 file changed
+2
-2
@@ -97,8 +97,8 @@ class Image private constructor(image: CoilImage, private val src: AutoCloseable
|
||||
|
||||
companion object {
|
||||
private val imageSearchMaxSize = appCtx.resources.getDimensionPixelOffset(R.dimen.image_search_max_size)
|
||||
private val targetWidth = appCtx.resources.displayMetrics.widthPixels * 3 / 2
|
||||
private val targetHeight = appCtx.resources.displayMetrics.heightPixels * 3 / 2
|
||||
private val targetWidth = appCtx.resources.displayMetrics.widthPixels * 2
|
||||
private val targetHeight = appCtx.resources.displayMetrics.heightPixels * 2
|
||||
|
||||
@delegate:RequiresApi(Build.VERSION_CODES.O)
|
||||
val isWideColorGamut by lazy { appCtx.resources.configuration.isScreenWideColorGamut }
|
||||
|
||||
Reference in new issue
Block a user