Skip to content

Commit

Permalink
Prevent updating flashlight button state before turning updating flas…
Browse files Browse the repository at this point in the history
…hlight
  • Loading branch information
esensar committed Oct 13, 2023
1 parent 03b0fbb commit d9d3928
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ class MyCameraImpl private constructor(private val context: Context, private var
if (MyCameraImpl.cameraFlash == null) {
MyCameraImpl.cameraFlash = CameraFlash(context, cameraTorchListener)
}
scope.launch {
_flashlightOn.emit(isFlashlightOn)
}
} catch (e: Exception) {
scope.launch {
cameraError.emit(Unit)
Expand Down

0 comments on commit d9d3928

Please sign in to comment.