mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
f27081e49b
commit
f1938757da
@ -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…
Reference in New Issue
Block a user