Add toast when eraser is long-pressed
This commit is contained in:
parent
8851c92222
commit
ce01f36a1b
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue