mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-12 11:31:08 +00:00
Play on a fresh install: the session screen no longer closes before it can install the runtime
SessionActivity finished at once when no runtime was installed - a guard from before the loading screen could install it - so Play (and Desktop) opened a screen that closed before anything happened. It now logs and carries on to installThenStart.
This commit is contained in:
1 parent
44265c3fcd
commit
146c07a25e
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)
|
||||
|
||||
Reference in new issue
Block a user