Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

docs: tidy inline comment wording

ExTv5e6625026013
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/home/HomeScreen.kt b/app/src/main/java/com/excp/podroid/ui/screens/home/HomeScreen.kt
index 14f5eeb..fe6bbbb 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/home/HomeScreen.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/home/HomeScreen.kt
@@ -69,7 +69,7 @@ fun HomeScreen(
val isRunning = vmState is VmState.Running
val isStarting = vmState is VmState.Starting
val uptimeLabel = viewModel.uptimeLabel(uptimeTick)
- // Bug 6: cache the result of the ConnectivityManager binder call so it doesn't
+ // Cache the result of the ConnectivityManager binder call so it doesn't
// re-run on every 1 Hz tick or incidental recomposition.
val phoneIp = remember { viewModel.phoneIp() }
@@ -81,7 +81,7 @@ fun HomeScreen(
text = { Text("Version ${info.latestVersion} is available. You have ${BuildConfig.VERSION_NAME}.") },
confirmButton = {
TextButton(onClick = {
- // Bug 9: guard against ActivityNotFoundException (no browser) or a
+ // Guard against ActivityNotFoundException (no browser) or a
// blank/malformed releaseUrl from the remote JSON source.
runCatching {
context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(info.releaseUrl)))
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt b/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt
index 5a4c86e..44c83f9 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsScreen.kt
@@ -271,7 +271,7 @@ fun SettingsScreen(
onClick = { viewModel.exportConsoleLogs() },
)
Spacer(Modifier.height(PodroidTokens.Spacing.SM))
- // Bug 7: use lifecycle-aware collection to match the rest of the screen.
+ // Use lifecycle-aware collection to match the rest of the screen.
val avfVerbose by viewModel.avfVerboseLogging.collectAsStateWithLifecycle()
PodroidListRow(
label = "Verbose AVF logging",
@@ -311,7 +311,7 @@ fun SettingsScreen(
AddPortForwardDialog(
onDismiss = { showAddDialog = false },
onAdd = { hostPort, guestPort, protocol ->
- // Bug 8: only close the dialog when the rule was actually added.
+ // Only close the dialog when the rule was actually added.
// addPortForward returns false if the (hostPort, protocol) pair
// already exists; in that case the dialog stays open with an error.
val added = viewModel.addPortForward(hostPort, guestPort, protocol)
@@ -610,7 +610,7 @@ private fun AdvancedFieldsBlock(
@Composable
private fun AddPortForwardDialog(
onDismiss: () -> Unit,
- // Bug 8: returns true if the rule was added, false if it was a duplicate.
+ // Returns true if the rule was added, false if it was a duplicate.
// The dialog shows an error and stays open on false.
onAdd: (hostPort: Int, guestPort: Int, protocol: String) -> Boolean,
) {
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsViewModel.kt b/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsViewModel.kt
index 0d4ef82..bc30f96 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsViewModel.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/settings/SettingsViewModel.kt
@@ -191,7 +191,7 @@ class SettingsViewModel @Inject constructor(
// "both" expands into separate TCP + UDP rules. Returns true if at least one
// rule was added; false if every expansion was already present (duplicate).
- // Bug 8: the caller uses the return value to show feedback instead of silently
+ // The caller uses the return value to show feedback instead of silently
// closing the dialog on a duplicate.
fun addPortForward(hostPort: Int, guestPort: Int, protocol: String = "tcp"): Boolean {
val protos = if (protocol == "both") listOf("tcp", "udp") else listOf(protocol)
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/setup/SetupScreen.kt b/app/src/main/java/com/excp/podroid/ui/screens/setup/SetupScreen.kt
index c77a612..321c176 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/setup/SetupScreen.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/setup/SetupScreen.kt
@@ -86,7 +86,7 @@ fun SetupScreen(
val pagerState = rememberPagerState(pageCount = { 3 })
val scope = rememberCoroutineScope()
- // Bug 4: request the notification permission BEFORE navigating away; using
+ // Request the notification permission BEFORE navigating away; using
// rememberLauncherForActivityResult registers it while the composable is still
// alive, so the result actually arrives. ActivityCompat.requestPermissions
// after onSetupComplete() fires against a transitioning Activity and is dropped
@@ -108,7 +108,7 @@ fun SetupScreen(
}
}
- // Bug 10: re-sync storageAccessEnabled against the actual OS grant on every
+ // Re-sync storageAccessEnabled against the actual OS grant on every
// resume (the user may have denied the all-files-access screen we sent them to).
val lifecycleOwner = LocalLifecycleOwner.current
DisposableEffect(lifecycleOwner) {
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/terminal/TerminalScreen.kt b/app/src/main/java/com/excp/podroid/ui/screens/terminal/TerminalScreen.kt
index 1b42eb1..3da54ce 100644
--- a/app/src/main/java/com/excp/podroid/ui/screens/terminal/TerminalScreen.kt
+++ b/app/src/main/java/com/excp/podroid/ui/screens/terminal/TerminalScreen.kt
@@ -159,7 +159,7 @@ fun TerminalScreen(
val terminalFont by viewModel.terminalFont.collectAsStateWithLifecycle()
if (showQuickSettings) {
- // Bug 5: pass the screen's viewModel explicitly so QuickSettingsDialog uses
+ // Pass the screen's viewModel explicitly so QuickSettingsDialog uses
// the same instance rather than resolving a second entry-scoped one via
// the hiltViewModel() default, which would give it a different (orphaned)
// instance with stale/empty session state.
diff --git a/app/src/test/java/com/excp/podroid/data/repository/PortForwardRepositoryTest.kt b/app/src/test/java/com/excp/podroid/data/repository/PortForwardRepositoryTest.kt
index b7acdee..9e94671 100644
--- a/app/src/test/java/com/excp/podroid/data/repository/PortForwardRepositoryTest.kt
+++ b/app/src/test/java/com/excp/podroid/data/repository/PortForwardRepositoryTest.kt
@@ -12,13 +12,13 @@ import org.junit.Assert.assertNull
import org.junit.Test
/**
- * Bug 4: PortForwardRule.deserialize must validate protocol and port range.
- * Bug 5: addRule must dedup on (hostPort, protocol) key.
+ * PortForwardRule.deserialize must validate protocol and port range.
+ * addRule must dedup on (hostPort, protocol) key.
*/
class PortForwardRepositoryTest {
// ------------------------------------------------------------------
- // Bug 4 — deserialize validation
+ // deserialize validation
// ------------------------------------------------------------------
@Test
@@ -84,7 +84,7 @@ class PortForwardRepositoryTest {
}
// ------------------------------------------------------------------
- // Bug 5 — (hostPort, protocol) dedup helper
+ // (hostPort, protocol) dedup helper
// ------------------------------------------------------------------
@Test
diff --git a/app/src/test/java/com/excp/podroid/data/repository/UpdateRepositoryTest.kt b/app/src/test/java/com/excp/podroid/data/repository/UpdateRepositoryTest.kt
index 8858f53..29adfab 100644
--- a/app/src/test/java/com/excp/podroid/data/repository/UpdateRepositoryTest.kt
+++ b/app/src/test/java/com/excp/podroid/data/repository/UpdateRepositoryTest.kt
@@ -17,7 +17,7 @@ import org.junit.Test
class UpdateRepositoryTest {
// ------------------------------------------------------------------
- // shouldCheck (Bug 1: cache clock uses currentTimeMillis, not uptimeMillis)
+ // shouldCheck (cache clock uses currentTimeMillis, not uptimeMillis)
// ------------------------------------------------------------------
@Test
@@ -56,7 +56,7 @@ class UpdateRepositoryTest {
}
// ------------------------------------------------------------------
- // isNewer (Bug 6: prerelease suffix numeric comparison)
+ // isNewer (prerelease suffix numeric comparison)
// ------------------------------------------------------------------
@Test