Added auto passes recalculation on TLE update

This commit is contained in:
Arty Bishop authored and Arty Bishop committed 2022-10-23 14:20:54 +01:00
1 parent c5c8df0b5e
commit 216f96caef
1 file changed
+5
@@ -59,6 +59,11 @@ class PassesViewModel @Inject constructor(
} }
} }
} }
viewModelScope.launch {
repository.updateState.collect { updateState ->
if (updateState is DataState.Success) calculatePasses()
}
}
calculatePasses() calculatePasses()
} }