From 520a2b160e15d9c762e544bf50eeb5aed65e6562 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 7 May 2017 15:53:03 +0200 Subject: [PATCH] do not allow clicking bottom buttons if they are invisible --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index 45c919b0..0e71d893 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -304,6 +304,10 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave shutter.animate().alpha(alpha).start() toggle_camera.animate().alpha(alpha).start() toggle_flash.animate().alpha(alpha).start() + + shutter.isClickable = !hide + toggle_camera.isClickable = !hide + toggle_flash.isClickable = !hide } private fun launchSettings() {