mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Fixed a minor crash in SettingsRepo, updated deps
This commit is contained in:
1 parent
ae53e5dc35
commit
8dc0cf7051
2 files changed
+10
-10
No files matched your search
@@ -73,8 +73,8 @@ class SettingsRepo(private val manager: LocationManager, private val preferences
|
||||
|
||||
private fun getSelectedIds(): List<Int> {
|
||||
val selectionString = preferences.getString(keySelectedIds, null)
|
||||
val selectionList = selectionString?.split(separatorComma)?.map { it.toInt() }
|
||||
return selectionList ?: emptyList()
|
||||
if (selectionString.isNullOrEmpty()) return emptyList()
|
||||
return selectionString.split(separatorComma).map { it.toInt() }
|
||||
}
|
||||
//endregion
|
||||
|
||||
|
||||
Reference in new issue
Block a user