mirror of
https://github.com/mihonapp/mihon.git
synced 2025-07-08 00:44:30 +02:00
lint 2
This commit is contained in:
@ -105,8 +105,7 @@ 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))
|
||||
{
|
||||
SevenZipPageLoader(tempFileManager.createTempFile(format.file)) {
|
||||
GlobalScope.launchUI {
|
||||
context.toast(context.stringResource(MR.strings.loader_7zip_slow_archives, it))
|
||||
}
|
||||
|
@ -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) }
|
||||
|
Reference in New Issue
Block a user