mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
ad0aeab06e
commit
2720898214
@ -181,11 +181,9 @@ fun View.screenshot(picture: Picture) {
|
|||||||
fun View.screenshot(canvasRecorder: CanvasRecorder) {
|
fun View.screenshot(canvasRecorder: CanvasRecorder) {
|
||||||
if (width > 0 && height > 0) {
|
if (width > 0 && height > 0) {
|
||||||
canvasRecorder.record(width, height) {
|
canvasRecorder.record(width, height) {
|
||||||
withTranslation(-scrollX.toFloat(), -scrollY.toFloat()) {
|
|
||||||
draw(this)
|
draw(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun View.setPaddingBottom(bottom: Int) {
|
fun View.setPaddingBottom(bottom: Int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user