Modern Apps git

← Modern-Apps.git

watch-wear: host status in themed watch scaffold

Commit
9c70b4299dc2b051acfe2bfe4bb7a90c5a028695
Author
Vayun Mathur <[email protected]>
When
2026-12-05 14:37 UTC (20 hours ago)
Parents
a310ebf
WearMainActivity now wraps the status screen in the Wear
Scaffold with the Material theme background fill, matching
WearShellActivity, instead of MaterialTheme alone over the
flat gray window background. Single root screen, so system
back correctly finishes the activity.

Verified: :watch:wear:assembleDev.

Diff

watch-wear/src/main/java/com/vayunmathur/watch/wear/ui/WearMainActivity.kt
diff --git a/watch-wear/src/main/java/com/vayunmathur/watch/wear/ui/WearMainActivity.kt b/watch-wear/src/main/java/com/vayunmathur/watch/wear/ui/WearMainActivity.ktindex 3f350f2228..3383aa9418 100644--- a/watch-wear/src/main/java/com/vayunmathur/watch/wear/ui/WearMainActivity.kt+++ b/watch-wear/src/main/java/com/vayunmathur/watch/wear/ui/WearMainActivity.kt@@ -3,7 +3,12 @@ package com.vayunmathur.watch.wear.ui import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent+import androidx.compose.foundation.background+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.ui.Modifier import androidx.wear.compose.material.MaterialTheme+import androidx.wear.compose.material.Scaffold import com.vayunmathur.watch.wear.service.ConduitService  /** Watch entry: starts the conduit service, then shows link status. */@@ -14,7 +19,11 @@ class WearMainActivity : ComponentActivity() {         ConduitService.start(this)         setContent {             MaterialTheme {-                WatchWearStatusScreen()+                Scaffold {+                    Box(modifier = Modifier.fillMaxSize().background(MaterialTheme.colors.background)) {+                        WatchWearStatusScreen()+                    }+                }             }         }     }