From c112ea193a2fe0f8854dc4b923606302adf46627 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Fri, 13 Nov 2026 16:08:07 +0000 Subject: [PATCH] Use LocalActivity to close Orbit from the Teletext home (lint) Co-Authored-By: Claude Opus 5.5 --- .../app/src/main/java/tv/orbit/classic/EmbyConnectionScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)