Compare commits

...

2 Commits

Author SHA1 Message Date
Raikuha
eb310d32ae
Merge 701a77a2d7 into 2f4bb7cadb 2024-11-04 16:47:13 +00:00
Raikuha
701a77a2d7
- Relocate variable for better lecture flow 2024-11-04 13:47:09 -03:00

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