From 5c1deb66c3df2778c34a10a3d691d7d63172e926 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Tue, 8 Mar 2022 09:40:53 +0800 Subject: [PATCH] fix:booktype mismatch --- app/src/main/java/io/legado/app/constant/BookType.kt | 2 +- app/src/main/java/io/legado/app/data/entities/BookSource.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/constant/BookType.kt b/app/src/main/java/io/legado/app/constant/BookType.kt index 470f48999..848884275 100644 --- a/app/src/main/java/io/legado/app/constant/BookType.kt +++ b/app/src/main/java/io/legado/app/constant/BookType.kt @@ -5,7 +5,7 @@ import androidx.annotation.IntDef object BookType { const val default = 0 // 0 文本 const val audio = 1 // 1 音频 - const val image = 3 //图片 + const val image = 2 //图片 const val local = "loc_book" @Target(AnnotationTarget.VALUE_PARAMETER) diff --git a/app/src/main/java/io/legado/app/data/entities/BookSource.kt b/app/src/main/java/io/legado/app/data/entities/BookSource.kt index 31650756c..d00d6b98e 100644 --- a/app/src/main/java/io/legado/app/data/entities/BookSource.kt +++ b/app/src/main/java/io/legado/app/data/entities/BookSource.kt @@ -26,7 +26,7 @@ data class BookSource( var bookSourceName: String = "", // 分组 var bookSourceGroup: String? = null, - // 类型,0 文本,1 音频, 3 图片 + // 类型,0 文本,1 音频, 2 图片 @BookType.Type var bookSourceType: Int = 0, // 详情页url正则