feat(runtime): install the runtime from a foreground service

This commit is contained in:
xXJsonDeruloXx committed 2026-09-27 11:01:55 -04:00
1 parent 8432fc5306
commit 4590b0a8c2
4 files changed
+110 -2

No files matched your search

@@ -1354,8 +1354,12 @@ class MainActivity : ComponentActivity() {
}
}
private fun install(release: LinuxRuntimeInstaller.Release) =
private fun install(release: LinuxRuntimeInstaller.Release) {
// The service keeps the process alive if the user switches away; this screen joins the
// same install (or starts it, if it gets there first) to show the progress.
com.droiddeck.launcher.runtime.RuntimeInstallService.start(this, release)
followInstall { listener -> LinuxRuntimeInstaller.install(this, release, listener) }
}
/**
* Shows an install's progress until it ends. [run] either starts one or joins the one already