pull/1903/head
kunfei 3 years ago
parent f27081e49b
commit f1938757da
  1. 18
      app/src/main/java/io/legado/app/ui/book/read/page/PageView.kt

@ -69,14 +69,16 @@ class PageView(context: Context) : FrameLayout(context) {
}
private fun upBitmap() {
Coroutine.async {
screenshot()
}.onSuccess {
val tmp = bitmap
bitmap = it
tmp?.recycle()
}.onError {
AppLog.put("更新PageView图片出错", it)
post {
Coroutine.async {
screenshot()
}.onSuccess {
val tmp = bitmap
bitmap = it
tmp?.recycle()
}.onError {
AppLog.put("更新PageView图片出错", it)
}
}
}

Loading…
Cancel
Save