Skip to content

Commit

Permalink
dokysp FoKE-Developers#67 comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ing03201 committed Oct 9, 2024
1 parent ef282d0 commit 10055d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.foke.together.domain.interactor.CaptureWithExternalCameraUseCase
import com.foke.together.domain.interactor.GetExternalCameraPreviewUrlUseCase
import com.foke.together.util.AppPolicy
import com.foke.together.util.AppPolicy.CAPTURE_INTERVAL
import com.foke.together.util.AppPolicy.COUNTDOWN_INTERVAL
import dagger.hilt.android.lifecycle.HiltViewModel
Expand Down Expand Up @@ -38,7 +39,7 @@ class CameraViewModel @Inject constructor(
viewModelScope.launch {
captureWithExternalCameraUseCase()
_progressState.floatValue = 1f
if (_captureCount.intValue < 4) {
if (_captureCount.intValue < AppPolicy.CAPTURE_COUNT) {
_captureCount.intValue += 1
mTimerState = false
} else {
Expand Down

0 comments on commit 10055d9

Please sign in to comment.