From 439023e1198e68d740269276d43b1269ed4c5754 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 25 Sep 2016 13:38:57 +0200 Subject: [PATCH] do not try disabling the flashlight at resume while strobo is active --- .../java/com/simplemobiletools/flashlight/MyCameraImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/simplemobiletools/flashlight/MyCameraImpl.java b/app/src/main/java/com/simplemobiletools/flashlight/MyCameraImpl.java index f05f335..83ce7a0 100644 --- a/app/src/main/java/com/simplemobiletools/flashlight/MyCameraImpl.java +++ b/app/src/main/java/com/simplemobiletools/flashlight/MyCameraImpl.java @@ -138,6 +138,10 @@ public class MyCameraImpl { } private void disableFlashlight() { + if (mIsStroboscopeRunning) { + return; + } + mIsFlashlightOn = false; if (mIsMarshmallow) { toggleMarshmallowFlashlight(false);