chore(release): set version 0.2.0 and remove code comments

This commit is contained in:
xXJsonDeruloXx committed 2026-09-28 10:32:12 -04:00
1 parent e406025d49
commit 20b63bba9b
7 files changed
+1 -24

No files matched your search

@@ -97,9 +97,6 @@ object HomeApp {
val intent = Intent(Intent.ACTION_MAIN)
.addCategory(Intent.CATEGORY_LAUNCHER)
.setComponent(ComponentName(app.packageName, app.className))
// Keep the target app's task separate from DroidDeck. Without this, Android puts the app on
// top of the caller's task: swiping it out of Recents then removes DroidDeck's task and
// ends the session, and on another display the entire task moves there.
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
if (displayId == null) {
context.startActivity(intent)
@@ -245,8 +245,6 @@ public final class LinuxRuntimeInstaller {
}
if (!staging.renameTo(root)) {
// The user's home is inside staging by now: take it back before the old rootfs
// returns, or the next install's cleanup of staging deletes it.
File keptTo = new File(staging, USER_DATA);
if (keptTo.isDirectory() && old.isDirectory()) keptTo.renameTo(new File(old, USER_DATA));
if (old.isDirectory()) old.renameTo(root);
@@ -262,10 +260,6 @@ public final class LinuxRuntimeInstaller {
}
}
/**
* Puts back what an update killed mid-swap left behind, before staging is cleared: the user's
* home may be sitting in staging and the previous rootfs in linuxfs.old.
*/
private static void recoverInterruptedSwap(File root, File staging, File old) {
File target = root.isDirectory() ? root : old;
File stagedHome = new File(staging, USER_DATA);
@@ -393,8 +393,6 @@ class SessionService : Service() {
networkLink.attach(this)
networkLink.publish()
components.add(networkLink)
// Stopped from the loading screen while this was still setting up: the teardown has run
// and found nothing, so nothing may start behind it.
if (gen != sessionGen || !SessionState.running) {
Log.i(TAG, "session stopped while it was starting; not launching it")
if (gen == sessionGen) components.clear()
@@ -420,7 +418,6 @@ class SessionService : Service() {
}, null)
Log.i(TAG, "session pid $pid, log ${sessionLog.path}")
if (gen != sessionGen || !SessionState.running) {
// Stopped in the moment the guest was launched: the teardown already ran without it.
Log.i(TAG, "session stopped while its guest was starting; taking it down")
if (gen == sessionGen) {
launchWatcher?.stopWatching()
@@ -900,8 +897,6 @@ class SessionService : Service() {
private fun finishSessionStop(status: Int, stoppedGen: Int) {
mainHandler.post {
// Play was pressed again while this teardown ran: the locks, the activity and the
// service now belong to the new session.
if (stoppedGen != sessionGen || SessionState.running) {
Log.i(TAG, "session $stoppedGen finished stopping after a new one started")
return@post
@@ -924,7 +919,6 @@ class SessionService : Service() {
}
private fun stopSession(status: Int) {
// Called from the main thread, the session-start thread and the guest's exit watcher.
synchronized(stopLock) {
if (!SessionState.running) return
SessionState.running = false
@@ -1158,8 +1152,6 @@ class SessionService : Service() {
}
fun stop(context: Context) {
// Not running yet (still downloading or setting up): the start path checks this flag
// and cancels, and a service started here would have no session to stop.
if (!SessionState.running) {
SessionState.stopRequested = true
return
@@ -26,8 +26,6 @@ public final class WaylandCompositor {
* listener must marshal to the UI thread itself. */
public static void setFirstFrameListener(Runnable r) { firstFrameListener = r; }
/** Clears the first-frame listener only if it is still {@code r}, so an activity going away
* never drops the one its replacement registered. */
public static synchronized void clearFirstFrameListener(Runnable r) {
if (firstFrameListener == r) firstFrameListener = null;
}
@@ -58,7 +56,6 @@ public final class WaylandCompositor {
public static void setGameListener(GameListener l) { gameListener = l; }
/** Clears the game listener only if it is still {@code l}. */
public static synchronized void clearGameListener(GameListener l) {
if (gameListener == l) gameListener = null;
}