fix: Wrong variable name

This commit is contained in:
Ahmad Ansori Palembani 2024-11-20 22:02:14 +07:00
parent 01fcd7d122
commit 74168c0f1d
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -783,7 +783,7 @@ object ImageUtil {
isMaxTextureSizeExceeded(drawable.bitmap)
fun isMaxTextureSizeExceeded(bitmap: Bitmap): Boolean =
isMaxTextureSizeExceeded(data.width, data.height)
isMaxTextureSizeExceeded(bitmap.width, bitmap.height)
private fun isMaxTextureSizeExceeded(width: Int, height: Int): Boolean {
if (minOf(width, height) <= 0) return false