Assume there is list of strings like
val list = listOf("a", "b")
How do I save it into and get from Bundle in Kotlin?
I've tried saving like this but it gives the type mismatch error
outState.putStringArrayList(KEY, list.toTypedArray())
Type inference failed. Expected type mismatch
Required: ArrayList<String!>?
Found: Array<String>