Dependencies update, fixed issue #58

This commit is contained in:
Arty Bishop committed 2021-05-31 09:42:31 +01:00
1 parent eb1ac3341f
commit a26f881160
3 files changed
+6 -4

No files matched your search

@@ -66,10 +66,12 @@ class SatItemViewModel @Inject constructor(
fun updateEntriesFromWeb(sources: List<String>) {
viewModelScope.launch {
_satData.value = Result.InProgress
runCatching {
try {
preferencesSource.saveTleSources(sources)
satDataRepository.updateEntriesFromWeb(sources)
}.onFailure { _satData.value = Result.Error(it) }
} catch (exception: Exception) {
_satData.value = Result.Error(exception)
}
}
}