优化
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user