From d64f731ee8f687753bda702b8a16eaa2f8e7924a Mon Sep 17 00:00:00 2001 From: ezhoon Date: Wed, 4 Sep 2024 23:05:18 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20min=20lifecycle=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/screen/pomodoro/focus/PomodoroFocusScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation/src/main/java/com/pomonyang/mohanyang/presentation/screen/pomodoro/focus/PomodoroFocusScreen.kt b/presentation/src/main/java/com/pomonyang/mohanyang/presentation/screen/pomodoro/focus/PomodoroFocusScreen.kt index ffd3c3ae..af2b8f31 100644 --- a/presentation/src/main/java/com/pomonyang/mohanyang/presentation/screen/pomodoro/focus/PomodoroFocusScreen.kt +++ b/presentation/src/main/java/com/pomonyang/mohanyang/presentation/screen/pomodoro/focus/PomodoroFocusScreen.kt @@ -88,7 +88,7 @@ fun PomodoroFocusRoute( } } - pomodoroTimerViewModel.effects.collectWithLifecycle { effect -> + pomodoroTimerViewModel.effects.collectWithLifecycle(minActiveState = Lifecycle.State.CREATED) { effect -> if (effect is PomodoroTimerEffect.PomodoroFocusEffect) { when (effect) { PomodoroTimerEffect.PomodoroFocusEffect.ForceGoRest -> {