Horis 2 лет назад
Родитель
Сommit
24dad5c991
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app/src/main/java/io/legado/app/model/ReadBook.kt

+ 3 - 0
app/src/main/java/io/legado/app/model/ReadBook.kt

@@ -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) {