mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Fixed tle update triggered crash
This commit is contained in:
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"
|
||||||
|
|||||||
Reference in new issue
Block a user