mirror of
https://github.com/FossifyOrg/Flashlight.git
synced 2026-06-12 10:07:44 -04: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