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
@@ -925,7 +925,7 @@ object ReadBook : CoroutineScope by MainScope() {
if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) { if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) {
durChapterIndex = simulatedChapterSize - 1 durChapterIndex = simulatedChapterSize - 1
} }
clearTextChapter() callBack ?: clearTextChapter()
} }
} }
@@ -546,7 +546,7 @@ object ReadManga : CoroutineScope by MainScope() {
if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) { if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) {
durChapterIndex = simulatedChapterSize - 1 durChapterIndex = simulatedChapterSize - 1
} }
clearMangaChapter() mCallback ?: clearMangaChapter()
} }
} }
@@ -137,6 +137,8 @@ class ReadMangaActivity : VMBaseActivity<ActivityMangaBinding, ReadMangaViewMode
if (it.resultCode == RESULT_OK) { if (it.resultCode == RESULT_OK) {
setResult(RESULT_DELETED) setResult(RESULT_DELETED)
super.finish() super.finish()
} else {
ReadManga.loadOrUpContent()
} }
} }
override val binding by viewBinding(ActivityMangaBinding::inflate) override val binding by viewBinding(ActivityMangaBinding::inflate)
@@ -198,6 +198,8 @@ class ReadBookActivity : BaseReadBookActivity(),
if (it.resultCode == RESULT_OK) { if (it.resultCode == RESULT_OK) {
setResult(RESULT_DELETED) setResult(RESULT_DELETED)
super.finish() super.finish()
} else {
ReadBook.loadOrUpContent()
} }
} }
private val selectImageDir = registerForActivityResult(HandleFileContract()) { private val selectImageDir = registerForActivityResult(HandleFileContract()) {