Pavle Joksovic
01/17/2022, 1:41 PMprivate val _toneMap = MutableStateFlow(hashMapOf(0 to listOf<Tone>()))
and I update the value like this
toneMap[index] = tones
val toneMapCopy = HashMap(toneMap)
_toneMap.value = toneMapCopy
there is an issue when the toneMap[index] already contains a list, the value is not updated. Any idea how to fix this?hfhbd
01/17/2022, 6:12 PMPavle Joksovic
01/18/2022, 7:26 AM