do not allow automatic flash in video mode
This commit is contained in:
parent
604c5b9e76
commit
f2b8b1ed32
|
@ -228,7 +228,7 @@ class MainActivity : SimpleActivity(), SensorEventListener, PreviewListener, Pho
|
|||
return
|
||||
}
|
||||
|
||||
mFlashlightState = ++mFlashlightState % 3
|
||||
mFlashlightState = ++mFlashlightState % if (mIsInPhotoMode) 3 else 2
|
||||
checkFlash()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue