Merge pull request #211 from KryptKode/feat/eraser-toast

Add toast when eraser is long-pressed
This commit is contained in:
Tibor Kaputa 2021-11-18 10:18:45 +01:00 committed by GitHub
commit 26c9799ac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()