فهرست منبع

style(CustomDialog): 🎨 去除多余的代码

Discut 3 سال پیش
والد
کامیت
886e0f2c40
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

+ 1 - 2
app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@@ -270,7 +270,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
             }
             }
             val left = v[0].toInt()
             val left = v[0].toInt()
             val right = v[1].toInt()
             val right = v[1].toInt()
-            if (left > right) {
+            if (left > right){
                 AppLog.put("Error expression : $s; left > right")
                 AppLog.put("Error expression : $s; left > right")
                 continue
                 continue
             }
             }
@@ -735,7 +735,6 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
             val useReplace = AppConfig.exportUseReplace && book.getUseReplaceRule()
             val useReplace = AppConfig.exportUseReplace && book.getUseReplaceRule()
             val contentProcessor = ContentProcessor.get(book.name, book.origin)
             val contentProcessor = ContentProcessor.get(book.name, book.origin)
             var chapterList: MutableList<BookChapter> = ArrayList()
             var chapterList: MutableList<BookChapter> = ArrayList()
-            appDb.bookChapterDao.getChapterList(book.bookUrl)
             appDb.bookChapterDao.getChapterList(book.bookUrl).forEachIndexed { index, chapter ->
             appDb.bookChapterDao.getChapterList(book.bookUrl).forEachIndexed { index, chapter ->
                 if (scope.indexOf(index) >= 0) {
                 if (scope.indexOf(index) >= 0) {
                     chapterList.add(chapter)
                     chapterList.add(chapter)