do not allow automatic flash in video mode

This commit is contained in:
tibbi 2017-03-26 18:29:15 +02:00
parent 604c5b9e76
commit f2b8b1ed32
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
return
}
mFlashlightState = ++mFlashlightState % 3
mFlashlightState = ++mFlashlightState % if (mIsInPhotoMode) 3 else 2
checkFlash()
}