From 38b2770a0660140bdd7cded3b82494dc989c89bb Mon Sep 17 00:00:00 2001 From: MohitMali Date: Mon, 14 Nov 2022 12:46:37 +0530 Subject: [PATCH 1/3] Fix show brush size tool --- .../com/simplemobiletools/draw/pro/activities/MainActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt index 06c8521..f82d0a0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt @@ -408,7 +408,8 @@ class MainActivity : SimpleActivity(), CanvasListener { } private fun updateButtonStates() { - hideBrushSettings(isEyeDropperOn || isBucketFillOn) + if (config.showBrushSize) + hideBrushSettings(isEyeDropperOn || isBucketFillOn) updateButtonColor(eraser, isEraserOn) updateButtonColor(eye_dropper, isEyeDropperOn) From 1a6a2b6e75549297be0cbfc8b4f03cf0b70085c1 Mon Sep 17 00:00:00 2001 From: MohitMali Date: Mon, 14 Nov 2022 17:28:37 +0530 Subject: [PATCH 2/3] Add braces --- .../com/simplemobiletools/draw/pro/activities/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt index f82d0a0..c18eb81 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt @@ -408,9 +408,9 @@ class MainActivity : SimpleActivity(), CanvasListener { } private fun updateButtonStates() { - if (config.showBrushSize) + if (config.showBrushSize) { hideBrushSettings(isEyeDropperOn || isBucketFillOn) - + } updateButtonColor(eraser, isEraserOn) updateButtonColor(eye_dropper, isEyeDropperOn) updateButtonColor(bucket_fill, isBucketFillOn) From 2fe6cf74d6e04dd5ac405c0cd1968e9638c904cc Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Mon, 14 Nov 2022 15:44:59 +0100 Subject: [PATCH 3/3] adding an empty line --- .../com/simplemobiletools/draw/pro/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt index c18eb81..b642aca 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/pro/activities/MainActivity.kt @@ -411,6 +411,7 @@ class MainActivity : SimpleActivity(), CanvasListener { if (config.showBrushSize) { hideBrushSettings(isEyeDropperOn || isBucketFillOn) } + updateButtonColor(eraser, isEraserOn) updateButtonColor(eye_dropper, isEyeDropperOn) updateButtonColor(bucket_fill, isBucketFillOn)