From 5b527e3df9fe5f5cebcbcede71965bf305e9974e Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 17 Sep 2022 12:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- .../legado/app/ui/book/read/page/provider/ChapterProvider.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e3330a492..232a792e4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -197,7 +197,7 @@ dependencies { implementation("androidx.room:room-runtime:$room_version") implementation("androidx.room:room-ktx:$room_version") kapt("androidx.room:room-compiler:$room_version") - testImplementation("androidx.room:room-testing:$room_version") + androidTestImplementation("androidx.room:room-testing:$room_version") //liveEventBus implementation('io.github.jeremyliao:live-event-bus-x:1.8.0') diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt index d14f07633..788e9c9cb 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt @@ -505,10 +505,10 @@ object ChapterProvider { srcList != null && char == srcReplaceChar -> { val src = srcList.removeFirst() ImageProvider.cacheImage(book, src, ReadBook.bookSource) - TextColumn( + ImageColumn( start = absStartX + xStart, end = absStartX + xEnd, - charData = src + src = src ) } isLineEnd && char == reviewChar -> {