- Relocate variable for better lecture flow

This commit is contained in:
Raikuha 2024-11-04 13:47:09 -03:00 committed by GitHub
parent e19d302f5e
commit 701a77a2d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,10 +28,10 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
ImageDecoder.newInstance(it.inputStream(), options.cropBorders, displayProfile)
}
val fallbackForLongStrips by lazy { Injekt.get<BasePreferences>().fallbackForLongStrips().get() }
check(decoder != null && decoder.width > 0 && decoder.height > 0) { "Failed to initialize decoder" }
val fallbackForLongStrips by lazy { Injekt.get<BasePreferences>().fallbackForLongStrips().get() }
val srcWidth = decoder.width
val srcHeight = decoder.height