chore(deps): Update unifile

This commit is contained in:
Ahmad Ansori Palembani 2024-06-18 18:53:46 +07:00
parent 63d27bcf60
commit 1cced95526
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 5 additions and 4 deletions

View file

@ -30,3 +30,4 @@
- Replace ProgressBar with ProgressIndicator from Material3 to improve UI consistency - Replace ProgressBar with ProgressIndicator from Material3 to improve UI consistency
- Merge lastFetch and lastRead query into library_view VIEW - Merge lastFetch and lastRead query into library_view VIEW
- Update Japenese translation - Update Japenese translation
- Update dependency com.github.tachiyomiorg:unifile to a9de196cc7

View file

@ -66,7 +66,7 @@ class DownloadProvider(private val context: Context) {
* @param source the source to query. * @param source the source to query.
*/ */
fun findSourceDir(source: Source): UniFile? { fun findSourceDir(source: Source): UniFile? {
return downloadsDir?.findFile(getSourceDirName(source), true) return downloadsDir?.findFile(getSourceDirName(source))
} }
/** /**
@ -77,7 +77,7 @@ class DownloadProvider(private val context: Context) {
*/ */
fun findMangaDir(manga: Manga, source: Source): UniFile? { fun findMangaDir(manga: Manga, source: Source): UniFile? {
val sourceDir = findSourceDir(source) val sourceDir = findSourceDir(source)
return sourceDir?.findFile(getMangaDirName(manga), true) return sourceDir?.findFile(getMangaDirName(manga))
} }
/** /**
@ -90,7 +90,7 @@ class DownloadProvider(private val context: Context) {
fun findChapterDir(chapter: Chapter, manga: Manga, source: Source): UniFile? { fun findChapterDir(chapter: Chapter, manga: Manga, source: Source): UniFile? {
val mangaDir = findMangaDir(manga, source) val mangaDir = findMangaDir(manga, source)
return getValidChapterDirNames(chapter).asSequence() return getValidChapterDirNames(chapter).asSequence()
.mapNotNull { mangaDir?.findFile(it, true) ?: mangaDir?.findFile("$it.cbz", true) } .mapNotNull { mangaDir?.findFile(it) ?: mangaDir?.findFile("$it.cbz") }
.firstOrNull() .firstOrNull()
} }

View file

@ -94,7 +94,7 @@ shizuku-api = { module = "dev.rikka.shizuku:api", version.ref = "shizuku" }
shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku" } shizuku-provider = { module = "dev.rikka.shizuku:provider", version.ref = "shizuku" }
taptargetview = { module = "com.getkeepsafe.taptargetview:taptargetview", version = "1.13.3" } taptargetview = { module = "com.getkeepsafe.taptargetview:taptargetview", version = "1.13.3" }
oss-licenses-plugin = { module = "com.google.android.gms:oss-licenses-plugin", version = "0.10.6" } oss-licenses-plugin = { module = "com.google.android.gms:oss-licenses-plugin", version = "0.10.6" }
unifile = { module = "com.github.tachiyomiorg:unifile", version = "7c257e1c64" } unifile = { module = "com.github.tachiyomiorg:unifile", version = "a9de196cc7" }
viewstatepageradapter = { module = "com.nightlynexus.viewstatepageradapter:viewstatepageradapter", version = "1.1.0" } viewstatepageradapter = { module = "com.nightlynexus.viewstatepageradapter:viewstatepageradapter", version = "1.1.0" }
viewtooltip = { module = "com.github.florent37:viewtooltip", version = "1.2.2" } viewtooltip = { module = "com.github.florent37:viewtooltip", version = "1.2.2" }