mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-04 11:37:22 +00:00
Dependencies update, fixed issue #58
This commit is contained in:
1 parent
eb1ac3341f
commit
a26f881160
3 files changed
+6
-4
No files matched your search
+4
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user