Use LocalActivity to close Orbit from the Teletext home (lint)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user