mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-02-19 21:20:48 +01:00
Hide brush settings when other tools are active
This commit is contained in:
parent
7d1ee2fc21
commit
5be7d50402
@ -407,6 +407,8 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateButtonStates() {
|
private fun updateButtonStates() {
|
||||||
|
hideBrushSettings(isEyeDropperOn || isBucketFillOn)
|
||||||
|
|
||||||
arrayOf(
|
arrayOf(
|
||||||
eraser to isEraserOn,
|
eraser to isEraserOn,
|
||||||
eye_dropper to isEyeDropperOn,
|
eye_dropper to isEyeDropperOn,
|
||||||
@ -428,6 +430,12 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun hideBrushSettings(hide: Boolean) {
|
||||||
|
arrayOf(stroke_width_bar, stroke_width_preview).forEach {
|
||||||
|
it.beGoneIf(hide)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun confirmImage() {
|
private fun confirmImage() {
|
||||||
when {
|
when {
|
||||||
isEditIntent -> {
|
isEditIntent -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user