mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -925,7 +925,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) {
|
||||
durChapterIndex = simulatedChapterSize - 1
|
||||
}
|
||||
clearTextChapter()
|
||||
callBack ?: clearTextChapter()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -546,7 +546,7 @@ object ReadManga : CoroutineScope by MainScope() {
|
||||
if (simulatedChapterSize > 0 && durChapterIndex > simulatedChapterSize - 1) {
|
||||
durChapterIndex = simulatedChapterSize - 1
|
||||
}
|
||||
clearMangaChapter()
|
||||
mCallback ?: clearMangaChapter()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user