Use LocalActivity to close Orbit from the Teletext home (lint)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m53s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 3m9s
release-gate / verify (push) Failing after 14m48s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 16:08:07 +00:00
co-authored by Claude Opus 5.5
parent 871bbbdd7a
commit c112ea193a
@@ -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)