enable the flashlight after setup if it should be (like on resume)

This commit is contained in:
tibbi 2016-01-06 16:10:44 +01:00
parent cedd523eb1
commit f4e495a4ce

View File

@ -50,6 +50,9 @@ public class MainActivity extends AppCompatActivity {
params = camera.getParameters();
params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
camera.setParameters(params);
if (isFlashlightOn)
enableFlashlight();
}
}