From 3afc9e53dd7257f00115cd1d3f6aef6adc119d67 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 15 Feb 2016 21:31:34 +0100 Subject: [PATCH] invalidate the canvas after every touch event --- app/src/main/java/draw/simplemobiletools/com/MyCanvas.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/draw/simplemobiletools/com/MyCanvas.java b/app/src/main/java/draw/simplemobiletools/com/MyCanvas.java index 1269b7f..0d85a14 100644 --- a/app/src/main/java/draw/simplemobiletools/com/MyCanvas.java +++ b/app/src/main/java/draw/simplemobiletools/com/MyCanvas.java @@ -66,20 +66,19 @@ public class MyCanvas extends View { startX = x; startY = y; actionDown(x, y); - invalidate(); break; case MotionEvent.ACTION_MOVE: actionMove(x, y); - invalidate(); break; case MotionEvent.ACTION_UP: actionUp(); - invalidate(); break; default: break; } + invalidate(); + return true; } }