This commit is contained in:
Horis
2025-03-23 18:42:02 +08:00
parent e8e2024a77
commit 3d96d51d04
4 changed files with 6 additions and 2 deletions

View File

@@ -925,7 +925,7 @@ object ReadBook : CoroutineScope by MainScope() {
if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) {
durChapterIndex = simulatedChapterSize - 1
}
clearTextChapter()
callBack ?: clearTextChapter()
}
}

View File

@@ -546,7 +546,7 @@ object ReadManga : CoroutineScope by MainScope() {
if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) {
durChapterIndex = simulatedChapterSize - 1
}
clearMangaChapter()
mCallback ?: clearMangaChapter()
}
}

View File

@@ -137,6 +137,8 @@ class ReadMangaActivity : VMBaseActivity<ActivityMangaBinding, ReadMangaViewMode
if (it.resultCode == RESULT_OK) {
setResult(RESULT_DELETED)
super.finish()
} else {
ReadManga.loadOrUpContent()
}
}
override val binding by viewBinding(ActivityMangaBinding::inflate)

View File

@@ -198,6 +198,8 @@ class ReadBookActivity : BaseReadBookActivity(),
if (it.resultCode == RESULT_OK) {
setResult(RESULT_DELETED)
super.finish()
} else {
ReadBook.loadOrUpContent()
}
}
private val selectImageDir = registerForActivityResult(HandleFileContract()) {