Add note about b/221643630

pull/330/head
Don Turner 2 years ago
parent 501d29be59
commit 756e45eb82

@ -48,10 +48,11 @@ class SettingsViewModel @Inject constructor(
.stateIn(
scope = viewModelScope,
// Starting eagerly means the user data is ready when the SettingsDialog is laid out
// for the first time. Without this the layout is done using the "Loading" text,
// then replaced with the user editable fields once loaded, however, the layout
// height doesn't change meaning all the fields are squashed into a small
// for the first time. Without this, due to b/221643630 the layout is done using the
// "Loading" text, then replaced with the user editable fields once loaded, however,
// the layout height doesn't change meaning all the fields are squashed into a small
// scrollable column.
// TODO: Change to SharingStarted.WhileSubscribed(5_000) when b/221643630 is fixed
started = SharingStarted.Eagerly,
initialValue = Loading
)

Loading…
Cancel
Save