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