mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-03-03 18:47:39 +01:00
simplify a flashlight state check
This commit is contained in:
parent
209700dc72
commit
4aed627b7c
@ -630,7 +630,7 @@ class PreviewCameraOne : ViewGroup, SurfaceHolder.Callback, MyPreview {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun toggleFlashlight() {
|
override fun toggleFlashlight() {
|
||||||
val newState = ++mFlashlightState % if (!mIsInVideoMode) 3 else 2
|
val newState = ++mFlashlightState % if (mIsInVideoMode) 2 else 3
|
||||||
setFlashlightState(newState)
|
setFlashlightState(newState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user