This commit is contained in:
Jobobby04 2023-05-09 21:53:06 -04:00
parent de9000306b
commit 45f839c5e1
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ internal class ZipPageLoader(file: File) : PageLoader() {
} }
zip.fileHeaders.asSequence() zip.fileHeaders.asSequence()
.filter { !it.isDirectory && ImageUtil.isImage(it.fileName) { zip.getInputStream(it) } } .filter { !it.isDirectory && ImageUtil.isImage(it.fileName) { zip.getInputStream(it) } }
.forEach { entry -> .forEach { entry ->
zip.extractFile(entry, tmpDir.absolutePath) zip.extractFile(entry, tmpDir.absolutePath)
} }

View File

@ -366,7 +366,7 @@ class FavoritesSyncHelper(val context: Context) {
fav = true, fav = true,
forceSource = exh, forceSource = exh,
throttleFunc = throttleManager::throttle, throttleFunc = throttleManager::throttle,
retry = 3 retry = 3,
) )
if (result is GalleryAddEvent.Fail) { if (result is GalleryAddEvent.Fail) {

View File

@ -73,7 +73,7 @@ class BatchAddScreenModel(
context = context, context = context,
url = s, url = s,
fav = true, fav = true,
retry = 2 retry = 2,
) )
} }
if (result is GalleryAddEvent.Success) { if (result is GalleryAddEvent.Success) {