Skip to content

Commit c719181

Browse files
authored
fix renamed method calls (#271)
1 parent bbf2cba commit c719181

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

toolkit/featureforms/src/main/java/com/arcgismaps/toolkit/featureforms/FeatureForm.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import com.arcgismaps.mapping.featureforms.SwitchFormInput
4444
import com.arcgismaps.mapping.featureforms.TextAreaFormInput
4545
import com.arcgismaps.mapping.featureforms.TextBoxFormInput
4646
import com.arcgismaps.toolkit.featureforms.components.base.BaseFieldState
47-
import com.arcgismaps.toolkit.featureforms.components.base.MutableStateCollection
47+
import com.arcgismaps.toolkit.featureforms.components.base.MutableFormStateCollection
4848
import com.arcgismaps.toolkit.featureforms.components.base.FormStateCollection
4949
import com.arcgismaps.toolkit.featureforms.components.base.getState
5050
import com.arcgismaps.toolkit.featureforms.components.base.rememberBaseGroupState
@@ -204,7 +204,7 @@ internal fun rememberStates(
204204
context: Context,
205205
scope: CoroutineScope
206206
): FormStateCollection {
207-
val states = MutableStateCollection()
207+
val states = MutableFormStateCollection()
208208
form.elements.forEach { element ->
209209
when (element) {
210210
is FieldFormElement -> {
@@ -215,7 +215,7 @@ internal fun rememberStates(
215215
}
216216

217217
is GroupFormElement -> {
218-
val fieldStateCollection = MutableStateCollection()
218+
val fieldStateCollection = MutableFormStateCollection()
219219
element.formElements.forEach {
220220
if (it is FieldFormElement) {
221221
val state = rememberFieldState(

toolkit/featureforms/src/main/java/com/arcgismaps/toolkit/featureforms/components/formelement/GroupElement.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import androidx.compose.ui.tooling.preview.Preview
4545
import androidx.compose.ui.unit.dp
4646
import com.arcgismaps.toolkit.featureforms.components.base.BaseFieldState
4747
import com.arcgismaps.toolkit.featureforms.components.base.BaseGroupState
48-
import com.arcgismaps.toolkit.featureforms.components.base.MutableStateCollection
48+
import com.arcgismaps.toolkit.featureforms.components.base.MutableFormStateCollection
4949
import com.arcgismaps.toolkit.featureforms.components.base.FormStateCollection
5050
import com.arcgismaps.toolkit.featureforms.components.base.getState
5151

@@ -158,7 +158,7 @@ private fun GroupElementPreview() {
158158
label = "Title",
159159
description = "Description",
160160
expanded = false,
161-
fieldStates = MutableStateCollection(),
161+
fieldStates = MutableFormStateCollection(),
162162
modifier = Modifier.padding(start = 15.dp, end = 15.dp, top = 10.dp, bottom = 10.dp),
163163
colors = GroupElementDefaults.colors(),
164164
onClick = {}

0 commit comments

Comments
 (0)