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,8 +221,10 @@ public class MyCameraImpl {
|
|||||||
|
|
||||||
if (mCamera != null) {
|
if (mCamera != null) {
|
||||||
mCamera.setParameters(torchOff);
|
mCamera.setParameters(torchOff);
|
||||||
mCamera.release();
|
if (!mShouldEnableFlashlight) {
|
||||||
mCamera = null;
|
mCamera.release();
|
||||||
|
mCamera = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mIsStroboscopeRunning = false;
|
mIsStroboscopeRunning = false;
|
||||||
mShouldStroboscopeStop = false;
|
mShouldStroboscopeStop = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user