mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 06:52:49 +01:00
Compare commits
2 Commits
463e6f85f6
...
399e689969
Author | SHA1 | Date | |
---|---|---|---|
|
399e689969 | ||
|
b1da3f3421 |
@ -105,8 +105,7 @@ class ChapterLoader(
|
|||||||
is Format.Directory -> DirectoryPageLoader(format.file)
|
is Format.Directory -> DirectoryPageLoader(format.file)
|
||||||
is Format.Zip -> ZipPageLoader(tempFileManager.createTempFile(format.file))
|
is Format.Zip -> ZipPageLoader(tempFileManager.createTempFile(format.file))
|
||||||
is Format.SevenZip -> try {
|
is Format.SevenZip -> try {
|
||||||
SevenZipPageLoader(tempFileManager.createTempFile(format.file))
|
SevenZipPageLoader(tempFileManager.createTempFile(format.file)) {
|
||||||
{
|
|
||||||
GlobalScope.launchUI {
|
GlobalScope.launchUI {
|
||||||
context.toast(context.stringResource(MR.strings.loader_7zip_slow_archives, it))
|
context.toast(context.stringResource(MR.strings.loader_7zip_slow_archives, it))
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ import java.io.File
|
|||||||
*/
|
*/
|
||||||
internal class SevenZipPageLoader(
|
internal class SevenZipPageLoader(
|
||||||
private val file: File,
|
private val file: File,
|
||||||
private val notifySlowArchive: (method: String) -> Unit
|
private val notifySlowArchive: (method: String) -> Unit,
|
||||||
) : PageLoader() {
|
) : PageLoader() {
|
||||||
|
|
||||||
private val zip by lazy { SevenZFile(file) }
|
private val zip by lazy { SevenZFile(file) }
|
||||||
|
Loading…
Reference in New Issue
Block a user