fix turning on the flashlight on some devices

This commit is contained in:
tibbi 2016-07-24 21:37:41 +02:00
parent 842c88a7cb
commit fc6924ed0d

View File

@ -86,6 +86,7 @@ public class MyCameraImpl {
mParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH); mParams.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
mCamera.setParameters(mParams); mCamera.setParameters(mParams);
mCamera.startPreview();
} }
mBus.post(new Events.StateChanged(true)); mBus.post(new Events.StateChanged(true));
} }