We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce84c51 commit 0a62753Copy full SHA for 0a62753
presentation/src/main/java/com/whyranoid/presentation/running/RunningViewModel.kt
@@ -26,12 +26,12 @@ class RunningViewModel @Inject constructor(
26
val runningState = runningRepository.runningState
27
28
init {
29
- startRunningWorker(context)
30
if (runningRepository.runningState.value is RunningState.NotRunning) {
31
viewModelScope.launch {
32
startRunningUseCase()
33
}
34
+ startRunningWorker(context)
35
36
37
private fun startRunningWorker(context: Context): LiveData<WorkInfo> {
0 commit comments