A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.
feat(x11): use PodroidTopBar + mutableIntStateOf for surface dims
ExTve752f2d93384
diff --git a/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt b/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.ktindex 1a35c6b..3bf82fb 100644--- a/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt+++ b/app/src/main/java/com/excp/podroid/ui/screens/x11/X11Screen.kt@@ -41,10 +41,10 @@ import androidx.compose.material3.Iconimport androidx.compose.material3.IconButtonimport androidx.compose.material3.MaterialThemeimport androidx.compose.material3.Text-import androidx.compose.material3.TopAppBarimport androidx.compose.runtime.Composableimport androidx.compose.runtime.LaunchedEffectimport androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOfimport androidx.compose.runtime.mutableStateOfimport androidx.compose.runtime.rememberimport androidx.compose.runtime.setValue@@ -74,6 +74,7 @@ import androidx.compose.ui.unit.spimport androidx.compose.ui.viewinterop.AndroidViewimport androidx.hilt.navigation.compose.hiltViewModelimport androidx.lifecycle.compose.collectAsStateWithLifecycle+import com.excp.podroid.ui.components.PodroidTopBarimport com.excp.podroid.x11.X11Constantsimport kotlinx.coroutines.delay@@ -142,8 +143,8 @@ fun X11Screen(Bitmap.createBitmap(X11Constants.FB_WIDTH, X11Constants.FB_HEIGHT, Bitmap.Config.ARGB_8888)}- var svWidth by remember { mutableStateOf(1) }- var svHeight by remember { mutableStateOf(1) }+ var svWidth by remember { mutableIntStateOf(1) }+ var svHeight by remember { mutableIntStateOf(1) }// Letterbox / pillarbox dst rect, pinned to top so the soft keyboard// (and the extra-keys row) live in the empty bottom strip.@@ -199,8 +200,8 @@ fun X11Screen(// keyboard, AndroidView (weight=1) shrinks to fill the gap..windowInsetsPadding(WindowInsets.ime)) {- TopAppBar(- title = { Text("X11") },+ PodroidTopBar(+ title = "X11",navigationIcon = {IconButton(onClick = onNavigateBack) {Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back")