Skip to content

Off doesn't turn off flashlight, DROID Turbo #6

Open

Description

@ocdtrekkie

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.

Activity

  1. sanbeg commented on Jun 13, 2015

    @sanbeg
    Owner

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

  2. Admin0 commented on Apr 7, 2016

    @Admin0

    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!!!!!!!!!!!!!!!!!!!!
            }
        }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions