mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-01-19 04:01:42 +01:00
enable the flashlight after setup if it should be (like on resume)
This commit is contained in:
parent
cedd523eb1
commit
f4e495a4ce
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user