Skip to content

Commit

Permalink
Backgrounding crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjiagoogle committed Oct 12, 2023
1 parent 489e543 commit e774ea2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ class PreviewViewModel @Inject constructor(
if (previewUiState.value.currentCameraSettings.isBackCameraAvailable
&& previewUiState.value.currentCameraSettings.isFrontCameraAvailable
) {

viewModelScope.launch {
stopCamera()
runningCameraJob = viewModelScope.launch {
_previewUiState.emit(
previewUiState.value.copy(
currentCameraSettings =
Expand Down

0 comments on commit e774ea2

Please sign in to comment.