This commit is contained in:
kunfei committed 2022-05-23 08:22:27 +08:00
1 parent dbedf12e7a
commit 062e2ee74f
1 file changed
+10 -8
@@ -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)
}
}
}