diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt index 9300f2d50..c273df63d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ChapterLoader.kt @@ -105,9 +105,8 @@ class ChapterLoader( is Format.Directory -> DirectoryPageLoader(format.file) is Format.Zip -> ZipPageLoader(tempFileManager.createTempFile(format.file)) is Format.SevenZip -> try { - SevenZipPageLoader(tempFileManager.createTempFile(format.file)) - { - GlobalScope.launchUI{ + SevenZipPageLoader(tempFileManager.createTempFile(format.file)) { + GlobalScope.launchUI { context.toast(context.stringResource(MR.strings.loader_7zip_slow_archives, it)) } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/SevenZipPageLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/SevenZipPageLoader.kt index cba928eed..d3942cbd9 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/SevenZipPageLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/SevenZipPageLoader.kt @@ -11,7 +11,7 @@ import java.io.File */ internal class SevenZipPageLoader( private val file: File, - private val notifySlowArchive: (method: String) -> Unit + private val notifySlowArchive: (method: String) -> Unit, ) : PageLoader() { private val zip by lazy { SevenZFile(file) } diff --git a/source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt b/source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt index 332de763b..bb4d417df 100644 --- a/source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt +++ b/source-local/src/androidMain/kotlin/tachiyomi/source/local/LocalSource.kt @@ -344,7 +344,7 @@ actual class LocalSource( } is Format.SevenZip -> { SevenZFile(tempFileManager.createTempFile(format.file)).use { archive -> - val entry = archive.getImages {} .firstOrNull() + val entry = archive.getImages {}.firstOrNull() entry?.let { coverManager.update(manga, it.inputStream()) } }