show toasts at long pressing Undo/Redo too
This commit is contained in:
parent
1902593dea
commit
66d4a28296
1 changed files with 10 additions and 0 deletions
|
@ -94,6 +94,11 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||
|
||||
color_picker.setOnClickListener { pickColor() }
|
||||
undo.setOnClickListener { my_canvas.undo() }
|
||||
undo.setOnLongClickListener {
|
||||
toast(R.string.undo)
|
||||
true
|
||||
}
|
||||
|
||||
eraser.setOnClickListener { eraserClicked() }
|
||||
eraser.setOnLongClickListener {
|
||||
toast(R.string.eraser)
|
||||
|
@ -101,6 +106,11 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||
}
|
||||
|
||||
redo.setOnClickListener { my_canvas.redo() }
|
||||
redo.setOnLongClickListener {
|
||||
toast(R.string.redo)
|
||||
true
|
||||
}
|
||||
|
||||
eye_dropper.setOnClickListener { eyeDropperClicked() }
|
||||
eye_dropper.setOnLongClickListener {
|
||||
toast(R.string.eyedropper)
|
||||
|
|
Loading…
Reference in a new issue