Modern Apps git

← Modern-Apps.git

findfamily: remove manual refresh chip from wear people

Commit
e0195ffb7cef55f170704211b98f45385a75aa3c
Author
Vayun Mathur <[email protected]>
When
2026-12-05 16:53 UTC (19 hours ago)
Parents
8c6f746
Phone-to-watch sync is now fully automatic over the Watch conduit, so the 'Refresh' chip on the wear people home (a manual sync request) is dead weight.

Remove that chip and its onRequestRefresh plumbing and the wear_refresh string; the Map and Stop sharing chips are real actions and are kept, as is the phone-reachability note they use. Update the wear preview and screenshot. Automatic WearFindFamilySync snapshot publishing is unchanged.

Verified: :findfamily:lint :findfamily:lintVitalRelease :findfamily:testDevUnitTest pass; :findfamily:metadata regenerated.

Diff

findfamily/src/main/java/com/vayunmathur/findfamily/ui/WearPeopleScreen.kt
diff --git a/findfamily/src/main/java/com/vayunmathur/findfamily/ui/WearPeopleScreen.kt b/findfamily/src/main/java/com/vayunmathur/findfamily/ui/WearPeopleScreen.ktindex 979f2ea7b8..3319dc3167 100644--- a/findfamily/src/main/java/com/vayunmathur/findfamily/ui/WearPeopleScreen.kt+++ b/findfamily/src/main/java/com/vayunmathur/findfamily/ui/WearPeopleScreen.kt@@ -48,7 +48,7 @@ fun WearPeopleScreen(     val snapshot by store.snapshot.collectAsState()     val connected by store.connected.collectAsState()     val context = LocalContext.current-    WearPeopleContent(snapshot = snapshot, connected = connected, nowMillis = System.currentTimeMillis(), onOpenPerson = onOpenPerson, onOpenMap = onOpenMap, onRequestRefresh = { WearLinkBridge.requestRefresh(context) }, onStopSharing = { WearLinkBridge.stopSharingNow(context) })+    WearPeopleContent(snapshot = snapshot, connected = connected, nowMillis = System.currentTimeMillis(), onOpenPerson = onOpenPerson, onOpenMap = onOpenMap, onStopSharing = { WearLinkBridge.stopSharingNow(context) }) }  /** Stateless people home behind [WearPeopleScreen]: snapshot/connection/instant are parameters for previews. */@@ -59,7 +59,6 @@ internal fun WearPeopleContent(     nowMillis: Long,     onOpenPerson: (Long) -> Unit,     onOpenMap: () -> Unit,-    onRequestRefresh: suspend () -> Boolean,     onStopSharing: suspend () -> Boolean, ) {     val scope = rememberCoroutineScope()@@ -201,18 +200,6 @@ internal fun WearPeopleContent(                 modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),             )         }-        item {-            Chip(-                onClick = {-                    scope.launch {-                        note = if (onRequestRefresh()) requestedText else noPhoneText-                    }-                },-                label = { Text(stringResource(R.string.wear_refresh), maxLines = 1) },-                colors = ChipDefaults.secondaryChipColors(),-                modifier = Modifier.fillMaxWidth().padding(horizontal = 8.dp),-            )-        }         item {             Chip(                 onClick = {
findfamily/src/main/res/values/wear_strings.xml
diff --git a/findfamily/src/main/res/values/wear_strings.xml b/findfamily/src/main/res/values/wear_strings.xmlindex 5c60321823..55842fe062 100644--- a/findfamily/src/main/res/values/wear_strings.xml+++ b/findfamily/src/main/res/values/wear_strings.xml@@ -3,7 +3,6 @@     <string name="wear_empty">No people synced yet. Open FindFamily on your phone to sync this watch.</string>     <string name="wear_people">People</string>     <string name="wear_map">Map</string>-    <string name="wear_refresh">Refresh</string>     <string name="wear_stop_sharing">Stop sharing now</string>     <string name="wear_sharing_on">Sharing on</string>     <string name="wear_sharing_off">Sharing stopped</string>
findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/WearMetadataPreviews.kt
diff --git a/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/WearMetadataPreviews.kt b/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/WearMetadataPreviews.ktindex a2f7774555..f52f24949d 100644--- a/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/WearMetadataPreviews.kt+++ b/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/WearMetadataPreviews.kt@@ -48,7 +48,7 @@ class WearMetadataPreviews {     @Composable     fun Preview1PeopleRound() {         RoundPreview {-            WearPeopleContent(snapshot = fixtureSnapshot, connected = true, nowMillis = FIXED_NOW_MILLIS, onOpenPerson = {}, onOpenMap = {}, onRequestRefresh = { true }, onStopSharing = { true })+            WearPeopleContent(snapshot = fixtureSnapshot, connected = true, nowMillis = FIXED_NOW_MILLIS, onOpenPerson = {}, onOpenMap = {}, onStopSharing = { true })         }     } 
metadata_data/photos/findfamily/wear/1.png
diff --git a/metadata_data/photos/findfamily/wear/1.png b/metadata_data/photos/findfamily/wear/1.pngindex 0514069ceb..d734360158 100644Binary files a/metadata_data/photos/findfamily/wear/1.png and b/metadata_data/photos/findfamily/wear/1.png differ