Fixed tle update triggered crash

This commit is contained in:
Arty Bishop committed 2021-05-19 09:35:52 +01:00
1 parent a0a95ce372
commit ae1fbb1687
1 file changed
+2 -2
@@ -47,7 +47,7 @@ class PreferencesProvider @Inject constructor(
} else { } else {
sourcesAdapter.fromJson(sourcesString) ?: loadDefaultSources() sourcesAdapter.fromJson(sourcesString) ?: loadDefaultSources()
} }
} catch (exception: ClassCastException) { } catch (exception: Exception) {
loadDefaultSources() loadDefaultSources()
} }
} }
@@ -67,7 +67,7 @@ class PreferencesProvider @Inject constructor(
} }
companion object { companion object {
const val keySources = "sourcesListJson" const val keySources = "prefTleSourcesKey"
const val keyModes = "satModes" const val keyModes = "satModes"
const val keyCompass = "compass" const val keyCompass = "compass"
const val keyTextLabels = "shouldUseTextLabels" const val keyTextLabels = "shouldUseTextLabels"