mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-04-25 07:28:45 +02:00
release the camera after strobe only if there wont be a perm torch after
This commit is contained in:
parent
37ec102452
commit
a561416195
@ -221,9 +221,11 @@ public class MyCameraImpl {
|
||||
|
||||
if (mCamera != null) {
|
||||
mCamera.setParameters(torchOff);
|
||||
if (!mShouldEnableFlashlight) {
|
||||
mCamera.release();
|
||||
mCamera = null;
|
||||
}
|
||||
}
|
||||
mIsStroboscopeRunning = false;
|
||||
mShouldStroboscopeStop = false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user