mirror of
https://github.com/mihonapp/mihon.git
synced 2025-01-15 12:43:11 +01:00
- Relocate variable for better lecture flow
This commit is contained in:
parent
e19d302f5e
commit
701a77a2d7
@ -28,10 +28,10 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
|
|||||||
ImageDecoder.newInstance(it.inputStream(), options.cropBorders, displayProfile)
|
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" }
|
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 srcWidth = decoder.width
|
||||||
val srcHeight = decoder.height
|
val srcHeight = decoder.height
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user