From 701a77a2d74e955fb92103772de4398a3a596f28 Mon Sep 17 00:00:00 2001 From: Raikuha <65867276+Raikuha@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:47:09 -0300 Subject: [PATCH] - Relocate variable for better lecture flow --- .../eu/kanade/tachiyomi/data/coil/TachiyomiImageDecoder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/coil/TachiyomiImageDecoder.kt b/app/src/main/java/eu/kanade/tachiyomi/data/coil/TachiyomiImageDecoder.kt index f6ba675ae..38fc5d075 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/coil/TachiyomiImageDecoder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/coil/TachiyomiImageDecoder.kt @@ -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().fallbackForLongStrips().get() } - check(decoder != null && decoder.width > 0 && decoder.height > 0) { "Failed to initialize decoder" } + val fallbackForLongStrips by lazy { Injekt.get().fallbackForLongStrips().get() } + val srcWidth = decoder.width val srcHeight = decoder.height