Hello!
I have MutableStateFlow (with string data as state) in PhoneStateListener class. I want to collect this flow in another class, where listener provides in constructor (repository). But this works only first time.
Sanendak
04/07/2021, 5:31 PM
Copy code
private val _state = MutableStateFlow("initial")
val state: StateFlow<String> = _state