From fa1ce6fb9cfba56f26cd523600dfa14d0f14591b Mon Sep 17 00:00:00 2001 From: The412Banner Date: Fri, 25 Sep 2026 10:09:55 -0400 Subject: [PATCH] Session: start a relaunch request in place, so DESKTOP reaches the desktop The drawer's DESKTOP ended Big Picture and landed on the front end. The session activity is singleTop: startActivity(next) from it went to its own onNewIntent and was dropped when it finished (on device the next session came up as "steam", not the desktop). It now restarts on the request's intent (setIntent + recreate), as an agent start does; the desktop's Steam launchers' handoff to a Steam session goes the same way. --- .../java/com/droiddeck/launcher/SessionActivity.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt b/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt index 58132bc1ad..33b97e7353 100644 --- a/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt +++ b/app/src/main/java/com/droiddeck/launcher/SessionActivity.kt @@ -740,11 +740,15 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback { if (status == 0) { runOnUiThread { if (isFinishing || isDestroyed) return@runOnUiThread - // A session the guest asked for (the desktop's Steam launchers) takes this one's - // place: the compositor stays, a new activity attaches and starts the service. + // A session asked for in this one's place (the desktop's Steam launchers, the + // drawer's DESKTOP) starts here: this activity restarts on its intent, as an agent + // start does. startActivity(next) could not do it - the activity is singleTop, so + // the request landed in this instance's onNewIntent and went with its finish(). SessionState.relaunch?.let { next -> SessionState.relaunch = null - startActivity(next) + setIntent(next) + recreate() + return@runOnUiThread } finish() }