Merge pull request #211 from KryptKode/feat/eraser-toast
Add toast when eraser is long-pressed
This commit is contained in:
commit
26c9799ac8
|
@ -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 New Issue