gowtham 6674
01/25/2023, 11:57 AMjava.lang.IllegalStateException: Cannot locate windowRecomposer; View androidx.compose.ui.platform.ComposeView{d5f4b2c V.E...... ......I. 0,0-0,0} is not attached to a window
class CustomInfoWindowAdapter(
val context: Context,
val tickers: List<Hashtable<*, *>>?
) : GoogleMap.InfoWindowAdapter {
override fun getInfoWindow(marker: Marker?): View {
val composeView = ComposeView(context).apply {
setContent {
Text(text = "")
}
}
return composeView
}
override fun getInfoContents(marker: Marker?): View {
val composeView = ComposeView(context).apply {
setContent {
Text(text = "")
}
}
return composeView
}
}