diff --git a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt index 446efcc2..17d6428b 100644 --- a/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt +++ b/android/app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt @@ -119,7 +119,7 @@ internal fun EmbyConnectionScreen(modifier: Modifier = Modifier, visible: Boolea /** Another part of Orbit by its name in the top bar ("TV Guide", "Catch Up", "Drive-In", "Connect Emby"), for the layouts' Home. */ onSection: (String) -> Unit = {}) { val appContext = androidx.compose.ui.platform.LocalContext.current.applicationContext - val hostActivity = androidx.compose.ui.platform.LocalContext.current as? android.app.Activity + val hostActivity = androidx.activity.compose.LocalActivity.current // Everything below belongs to the server signed in to ([ServerWorkspace]): another server's sign-in, catalogue and // schedules are never open at the same time, and work begun for one keeps writing only to its own. val workspace = Workspaces.current(appContext)