feat: M3 weighted shuffle v1 — real /api/radio with scoring #21
@@ -27,8 +27,8 @@ class SettingsViewModel @Inject constructor(
|
||||
) : ViewModel() {
|
||||
|
||||
private val transient = MutableStateFlow(TransientState())
|
||||
private val state_: MutableStateFlow<SettingsState> = MutableStateFlow(SettingsState())
|
||||
val state: StateFlow<SettingsState> = state_.asStateFlow()
|
||||
private val internal: MutableStateFlow<SettingsState> = MutableStateFlow(SettingsState())
|
||||
val state: StateFlow<SettingsState> = internal.asStateFlow()
|
||||
|
||||
init {
|
||||
// Compose the user-visible state from the auth observables
|
||||
@@ -48,7 +48,7 @@ class SettingsViewModel @Inject constructor(
|
||||
isSigningOut = t.isSigningOut,
|
||||
signedOut = t.signedOut,
|
||||
)
|
||||
}.collect { state_.value = it }
|
||||
}.collect { internal.value = it }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user