pull/2288/head
kunfei 2 years ago
parent 1301d02e39
commit 5b527e3df9
  1. 2
      app/build.gradle
  2. 4
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ChapterProvider.kt

@ -197,7 +197,7 @@ dependencies {
implementation("androidx.room:room-runtime:$room_version") implementation("androidx.room:room-runtime:$room_version")
implementation("androidx.room:room-ktx:$room_version") implementation("androidx.room:room-ktx:$room_version")
kapt("androidx.room:room-compiler:$room_version") kapt("androidx.room:room-compiler:$room_version")
testImplementation("androidx.room:room-testing:$room_version") androidTestImplementation("androidx.room:room-testing:$room_version")
//liveEventBus //liveEventBus
implementation('io.github.jeremyliao:live-event-bus-x:1.8.0') implementation('io.github.jeremyliao:live-event-bus-x:1.8.0')

@ -505,10 +505,10 @@ object ChapterProvider {
srcList != null && char == srcReplaceChar -> { srcList != null && char == srcReplaceChar -> {
val src = srcList.removeFirst() val src = srcList.removeFirst()
ImageProvider.cacheImage(book, src, ReadBook.bookSource) ImageProvider.cacheImage(book, src, ReadBook.bookSource)
TextColumn( ImageColumn(
start = absStartX + xStart, start = absStartX + xStart,
end = absStartX + xEnd, end = absStartX + xEnd,
charData = src src = src
) )
} }
isLineEnd && char == reviewChar -> { isLineEnd && char == reviewChar -> {

Loading…
Cancel
Save