mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-02-27 00:47:47 +01:00
do not allow have both eraser and eyedropper enabled
This commit is contained in:
parent
33716bb3f6
commit
7f992ef271
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user