Refactor tracker status string mappings

Should fix #9195
This commit is contained in:
arkon
2023-03-10 23:01:10 -05:00
parent ce66ed0389
commit 47a2d06682
14 changed files with 92 additions and 105 deletions

View File

@@ -293,7 +293,7 @@ private data class TrackStatusSelectorScreen(
private val service: TrackService,
) : StateScreenModel<Model.State>(State(track.status)) {
fun getSelections(): Map<Int, String> {
fun getSelections(): Map<Int, Int?> {
return service.getStatusList().associateWith { service.getStatus(it) }
}