优化
This commit is contained in:
@@ -69,14 +69,16 @@ class PageView(context: Context) : FrameLayout(context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun upBitmap() {
|
private fun upBitmap() {
|
||||||
Coroutine.async {
|
post {
|
||||||
screenshot()
|
Coroutine.async {
|
||||||
}.onSuccess {
|
screenshot()
|
||||||
val tmp = bitmap
|
}.onSuccess {
|
||||||
bitmap = it
|
val tmp = bitmap
|
||||||
tmp?.recycle()
|
bitmap = it
|
||||||
}.onError {
|
tmp?.recycle()
|
||||||
AppLog.put("更新PageView图片出错", it)
|
}.onError {
|
||||||
|
AppLog.put("更新PageView图片出错", it)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user