From 10055d9bca4cbcce110181d97953240ff974a9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9C=A4=EC=88=98?= Date: Wed, 9 Oct 2024 14:44:32 +0900 Subject: [PATCH] dokysp #67 comment --- .../com/foke/together/presenter/viewmodel/CameraViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presenter/src/main/java/com/foke/together/presenter/viewmodel/CameraViewModel.kt b/presenter/src/main/java/com/foke/together/presenter/viewmodel/CameraViewModel.kt index c6d4662..1bf4689 100644 --- a/presenter/src/main/java/com/foke/together/presenter/viewmodel/CameraViewModel.kt +++ b/presenter/src/main/java/com/foke/together/presenter/viewmodel/CameraViewModel.kt @@ -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 @@ -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 {