Skip to content

Satellite tracker and pass predictor for Android, inspired by Gpredict

Dependencies update, fixed issue #58

Arty Bishopa26f88116028
diff --git a/app/src/main/java/com/rtbishop/look4sat/presentation/satItemScreen/SatItemViewModel.kt b/app/src/main/java/com/rtbishop/look4sat/presentation/satItemScreen/SatItemViewModel.kt
index b0c15a57..daa38f67 100644
--- a/app/src/main/java/com/rtbishop/look4sat/presentation/satItemScreen/SatItemViewModel.kt
+++ b/app/src/main/java/com/rtbishop/look4sat/presentation/satItemScreen/SatItemViewModel.kt
@@ -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)
+ }
}
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2ea65b8d..b879ca86 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -75,7 +75,7 @@
<string name="pref_map_labels">Use text labels instead of icons</string>
<string name="pref_other_title">Other</string>
<string name="pref_time_utc_title">Show pass time in UTC</string>
- <string name="pref_compass_title">Use sensors to rotate PolarView</string>
+ <string name="pref_compass_title">Use sensors to rotate radar view</string>
<string name="tracking_title">Tracking preferences</string>
<string name="tracking_rotator_switch">Antenna rotator control</string>
diff --git a/build.gradle b/build.gradle
index b7bc3d33..c587bb85 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,7 @@ buildscript {
navigation_version = '2.3.5'
preference_version = '1.1.1'
room_version = '2.3.0'
- hilt_version = '2.35.1'
+ hilt_version = '2.36'
retrofit_version = '2.9.0'
osmdroid_version = '6.1.10'
timber_version = '4.7.1'