From f2b8b1ed32ba0fe3806ecf70ca52d66301e0604e Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 26 Mar 2017 18:29:15 +0200 Subject: [PATCH] do not allow automatic flash in video mode --- .../com/simplemobiletools/camera/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7a70c4c1..f74ab89a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -228,7 +228,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho return } - mFlashlightState = ++mFlashlightState % 3 + mFlashlightState = ++mFlashlightState % if (mIsInPhotoMode) 3 else 2 checkFlash() }