Add toast when eraser is long-pressed

This commit is contained in:
darthpaul 2021-11-16 00:37:02 +00:00
parent 8851c92222
commit ce01f36a1b
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
color_picker.setOnClickListener { pickColor() }
undo.setOnClickListener { my_canvas.undo() }
eraser.setOnClickListener { eraserClicked() }
eraser.setOnLongClickListener {
toast(R.string.eraser)
true
}
redo.setOnClickListener { my_canvas.redo() }
checkIntents()