diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt index 9619e24bc..9de902b29 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/views/EditorDrawCanvas.kt @@ -11,12 +11,15 @@ class EditorDrawCanvas(context: Context, attrs: AttributeSet) : View(context, at override fun onDraw(canvas: Canvas) { super.onDraw(canvas) + canvas.save() if (backgroundBitmap != null) { val left = (width - backgroundBitmap!!.width) / 2 val top = (height - backgroundBitmap!!.height) / 2 canvas.drawBitmap(backgroundBitmap, left.toFloat(), top.toFloat(), null) } + + canvas.restore() } fun updateBackgroundBitmap(bitmap: Bitmap) {