pull/2729/head
Horis 2 years ago
parent 727ad8cdaf
commit 43b10666d1
  1. 1
      app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@ -483,7 +483,6 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
val stream = ByteArrayOutputStream() val stream = ByteArrayOutputStream()
resource.compress(Bitmap.CompressFormat.JPEG, 100, stream) resource.compress(Bitmap.CompressFormat.JPEG, 100, stream)
val byteArray: ByteArray = stream.toByteArray() val byteArray: ByteArray = stream.toByteArray()
resource.recycle()
stream.close() stream.close()
epubBook.coverImage = Resource(byteArray, "Images/cover.jpg") epubBook.coverImage = Resource(byteArray, "Images/cover.jpg")
} }

Loading…
Cancel
Save