Fixed a minor crash in SettingsRepo, updated deps

This commit is contained in:
Arty Bishop committed 2025-12-27 15:01:45 +00:00
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