mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
add a toggle for turning flashlight on at startup
This commit is contained in:
@ -127,7 +127,9 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
private fun setupCameraImpl() {
|
||||
mCameraImpl = MyCameraImpl.newInstance(this)
|
||||
mCameraImpl!!.enableFlashlight()
|
||||
if (config.turnFlashlightOn) {
|
||||
mCameraImpl!!.enableFlashlight()
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupStroboscope() {
|
||||
|
Reference in New Issue
Block a user