Skip to content

Commit 02d32ab

Browse files
author
Anshul Thakur
committed
Reset dot bug fixed on Undo
1 parent 2530124 commit 02d32ab

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

apk/app-debug.apk

69 Bytes
Binary file not shown.

app/src/main/java/com/atechgeek/connectingdotsproblem/PaintView.kt

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class PaintView(context: Context?, attributeSet: AttributeSet?) : View(context,
9292

9393
fun undo() {
9494
if (dotsList.isNotEmpty()) {
95+
startPoint = null
9596
dotsList.removeAt(dotsList.lastIndex)
9697
isTouchEnabled = true
9798
invalidate()

0 commit comments

Comments
 (0)