From 76f1b03281f3123f9687ae01955831d60ce797eb Mon Sep 17 00:00:00 2001 From: Daniel Costa Date: Fri, 26 Jul 2024 12:06:23 -0300 Subject: [PATCH] using eraser size when in erasing mode --- .../src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt b/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt index 224f57ff..041c9070 100644 --- a/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt +++ b/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt @@ -66,6 +66,7 @@ class DrawingView @JvmOverloads constructor( private fun createEraserPaint(): Paint { val paint = createPaint() paint.xfermode = PorterDuffXfermode(PorterDuff.Mode.CLEAR) + paint.strokeWidth = eraserSize return paint } @@ -220,4 +221,4 @@ class DrawingView @JvmOverloads constructor( visibility = GONE currentShapeBuilder = ShapeBuilder() } -} \ No newline at end of file +}