Merge pull request #15 from The412Banner/fix/play-without-runtime

Play on a fresh install: don't close the session screen before it installs the runtime
This commit is contained in:
The412Banner authored and GitHub committed 2026-09-23 13:49:47 -04:00
commit 5cb6346017
1 file changed
+3 -5
@@ -116,11 +116,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
// PulseAudio are media playback); they are never forwarded to the guest.
volumeControlStream = android.media.AudioManager.STREAM_MUSIC
if (!LinuxRuntime.isInstalled(this)) {
Log.e(TAG, "the Linux runtime is not installed")
finish()
return
}
// No runtime is not a reason to leave: the loading screen installs it (installThenStart,
// below) and the session starts when it is in.
if (!LinuxRuntime.isInstalled(this)) Log.i(TAG, "the Linux runtime is not installed; the loading screen installs it")
val root = FrameLayout(this)
surfaceView = SurfaceView(this)