M5a frontend + M5b quarantine + M5c suggestions #30
@@ -27,8 +27,8 @@ class SettingsViewModel @Inject constructor(
|
|||||||
) : ViewModel() {
|
) : ViewModel() {
|
||||||
|
|
||||||
private val transient = MutableStateFlow(TransientState())
|
private val transient = MutableStateFlow(TransientState())
|
||||||
private val state_: MutableStateFlow<SettingsState> = MutableStateFlow(SettingsState())
|
private val internal: MutableStateFlow<SettingsState> = MutableStateFlow(SettingsState())
|
||||||
val state: StateFlow<SettingsState> = state_.asStateFlow()
|
val state: StateFlow<SettingsState> = internal.asStateFlow()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
// Compose the user-visible state from the auth observables
|
// Compose the user-visible state from the auth observables
|
||||||
@@ -48,7 +48,7 @@ class SettingsViewModel @Inject constructor(
|
|||||||
isSigningOut = t.isSigningOut,
|
isSigningOut = t.isSigningOut,
|
||||||
signedOut = t.signedOut,
|
signedOut = t.signedOut,
|
||||||
)
|
)
|
||||||
}.collect { state_.value = it }
|
}.collect { internal.value = it }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user