mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-28 09:37:43 +01:00
fix turning on the flashlight on some devices
This commit is contained in:
parent
842c88a7cb
commit
fc6924ed0d
@ -86,6 +86,7 @@ public class MyCameraImpl {
|
||||
|
||||
mParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
|
||||
mCamera.setParameters(mParams);
|
||||
mCamera.startPreview();
|
||||
}
|
||||
mBus.post(new Events.StateChanged(true));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user