优化
This commit is contained in:
1 parent
abc7b38267
commit
24dad5c991
1 file changed
+3
@@ -300,6 +300,9 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun recycleRecorders(beforeIndex: Int, afterIndex: Int) {
|
fun recycleRecorders(beforeIndex: Int, afterIndex: Int) {
|
||||||
|
if (!AppConfig.optimizeRender) {
|
||||||
|
return
|
||||||
|
}
|
||||||
executor.execute {
|
executor.execute {
|
||||||
val textChapter = curTextChapter ?: return@execute
|
val textChapter = curTextChapter ?: return@execute
|
||||||
if (afterIndex > beforeIndex) {
|
if (afterIndex > beforeIndex) {
|
||||||
|
|||||||
Reference in new issue
Block a user