Hey,
I just tried your FilePicker:
val openPicker = rememberFilePickerLauncher(
type = FilePickerFileType.Extension(listOf("cub")),
selectionMode = FilePickerSelectionMode.Single,
onResult = { file ->
}
)
IconButton(onClick = openPicker::launch) {
Icon(
imageVector = Icons.Default.FolderOpen,
contentDescription = i18n.menuFileOpen
)
}
However it crashes with the following error:
Caused by: java.lang.ClassCastException: class kotlin.coroutines.jvm.internal.CompletedContinuation cannot be cast to class kotlinx.coroutines.internal.DispatchedContinuation (kotlin.coroutines.jvm.internal.CompletedContinuation and kotlinx.coroutines.internal.DispatchedContinuation are in unnamed module of loader 'app')
Hey,
I just tried your FilePicker:
However it crashes with the following error: