From 3f23f017d2180158cf0cb8e958b145a9a6ed7405 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 5 Jun 2018 21:25:23 +0200 Subject: [PATCH] set the flash icon to Off at hiding to avoid glitches at reshowing --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) 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 82c78919..a7b2cfc1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -517,6 +517,7 @@ class MainActivity : SimpleActivity(), PhotoProcessor.MediaSavedListener { toggle_flash.beVisible() } else { toggle_flash.beInvisible() + toggle_flash.setImageResource(R.drawable.ic_flash_off) mPreview?.setFlashlightState(FLASH_OFF) } }