do not allow have both eraser and eyedropper enabled

This commit is contained in:
tibbi 2021-12-29 11:58:21 +01:00
parent 33716bb3f6
commit 7f992ef271

View file

@ -327,6 +327,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
}
private fun eraserClicked() {
if (isEyeDropperOn) {
eyeDropperClicked()
}
isEraserOn = !isEraserOn
updateEraserState()
}
@ -357,6 +361,10 @@ class MainActivity : SimpleActivity(), CanvasListener {
}
private fun eyeDropperClicked() {
if (isEraserOn) {
eraserClicked()
}
isEyeDropperOn = !isEyeDropperOn
if (isEyeDropperOn) {
eyeDropper.start()