Skip to content

Commit 9c7e134

Browse files
committed
Use GlobalContext instead of deprecated KoinContextHandler
1 parent 62d3348 commit 9c7e134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/cz/muni/fi/rpg/ui/gameMaster/InvitationDialog.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
4848
import kotlinx.coroutines.flow.StateFlow
4949
import kotlinx.coroutines.tasks.await
5050
import kotlinx.coroutines.withContext
51-
import org.koin.core.context.KoinContextHandler
51+
import org.koin.core.context.GlobalContext
5252

5353
@Composable
5454
internal fun InvitationDialog(invitation: Invitation, onDismissRequest: () -> Unit) {
@@ -101,7 +101,7 @@ internal fun InvitationDialog(invitation: Invitation, onDismissRequest: () -> Un
101101

102102
@Composable
103103
private fun sharingOptions(invitation: Invitation): StateFlow<SharingOptions?> {
104-
val jsonMapper: JsonMapper = KoinContextHandler.get().get()
104+
val jsonMapper: JsonMapper = GlobalContext.get().get()
105105
val flow = remember { MutableStateFlow<SharingOptions?>(null) }
106106

107107
LaunchedEffect(invitation) {

0 commit comments

Comments
 (0)