mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
fix turning on the flashlight on some devices
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user