mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-01-05 21:39:00 +01: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,8 +221,10 @@ public class MyCameraImpl {
|
||||
|
||||
if (mCamera != null) {
|
||||
mCamera.setParameters(torchOff);
|
||||
mCamera.release();
|
||||
mCamera = null;
|
||||
if (!mShouldEnableFlashlight) {
|
||||
mCamera.release();
|
||||
mCamera = null;
|
||||
}
|
||||
}
|
||||
mIsStroboscopeRunning = false;
|
||||
mShouldStroboscopeStop = false;
|
||||
|
Loading…
Reference in New Issue
Block a user