I have an EditText inside AndroidView, when I update list above AndroidView in LazyColumn the list is getting larger, but the text inside AndroidView is getting reset although I have it in rememberSaveable.
Here is my code
var productName by rememberSaveable { mutableStateOf("") }
AndroidView(
modifier = Modifier.fillMaxWidth(),
factory = { context ->
object : EditText(context).apply {
if (productName.isEmpty())
this.text = null
else
this.setText(productName)
}
},
)