flashlight icon indicating copy to clipboard operation
flashlight copied to clipboard

Off doesn't turn off flashlight, DROID Turbo

Open ocdtrekkie opened this issue 11 years ago • 2 comments

Not sure why. Button works to turn it on, but does not turn it back off.

If I happen to stumble across why, or a fix, I'll let you know.

ocdtrekkie avatar Feb 10 '15 18:02 ocdtrekkie

Although I don't have access to that phone, I've updated it to try and turn off more aggressively.

sanbeg avatar Jun 13 '15 18:06 sanbeg

It is worked on my case.

public synchronized void off() {
        if (camera != null) {
            cameraParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
            camera.setParameters(cameraParameters);
            camera.stopPreview();   <--------------  Like this!!!!!!!!!!!!!!!!!!!!
        }
    }

Admin0 avatar Apr 07 '16 15:04 Admin0