contacts: remove contact count from watch list header
- Commit
fef9eff01a2295894653f4bf10d93882f27b536c- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-06 02:43 UTC (1 hour ago)
- Parents
c883e70
The wear contact list opened with a centred caption showing the synced count, for example "79 contacts on watch" (or the included and total counts when the snapshot was truncated). That count tells the wearer nothing they can act on and spends the most valuable space on a small round screen, so remove the header item entirely instead of replacing it with a title or leaving empty space. The list now starts directly with the local search field under the Wear Scaffold TimeText, followed by the unchanged empty-state text and contact rows. List content, search filtering, and contact rows are unchanged, and the phone Contacts UI is untouched. The private statusLine helper that formatted the count is deleted with its only call site. Checked the other watch experiences for the same always-on count-in-header pattern (notes, calendar, clock, todo, weather, music, communicate, maps, findfamily, launcher, appstore, and the watch app): none shows a total count as its list header. Their headers are useful titles, dates, or section names, and their count text is conditional and actionable -- pending-sync confirmations and truncated-snapshot notices at the end of a list -- so no other module was changed. Regenerated the contacts wear listing screenshot with :contacts:metadata; only the wear list image is committed, as the metadata run also reproduced pre-existing drift in unrelated phone, tablet, and wear-detail images on a clean origin/main tree. Verification: :contacts:lint and :contacts:lintVitalRelease pass. :contacts:testDevUnitTest runs 636 tests with the same 2 failures as a clean origin/main baseline (DeepInteractionsPass2Test. insertOrEditShowsContactsAndCreateNewRoutes and InsertOrEditIntentActivityPass2Test.insertOrEditShowsNumber), proving parity with the known pre-existing failures.
Diff
contacts/src/main/java/com/vayunmathur/contacts/ui/WearContactListScreen.kt
diff --git a/contacts/src/main/java/com/vayunmathur/contacts/ui/WearContactListScreen.kt b/contacts/src/main/java/com/vayunmathur/contacts/ui/WearContactListScreen.ktindex 37782057c7..17b4f2a40a 100644--- a/contacts/src/main/java/com/vayunmathur/contacts/ui/WearContactListScreen.kt+++ b/contacts/src/main/java/com/vayunmathur/contacts/ui/WearContactListScreen.kt@@ -39,16 +39,6 @@ fun WearContactListScreen( val filtered = WearContactSearch.filter(snapshot.contacts, query) Scaffold(timeText = { TimeText() }) { ScalingLazyColumn(state = listState) {- item {- Text(- text = statusLine(snapshot),- style = MaterialTheme.typography.caption2,- textAlign = TextAlign.Center,- modifier = Modifier- .fillMaxWidth()- .padding(horizontal = 12.dp, vertical = 4.dp),- )- } item { BasicTextField( value = query,@@ -107,12 +97,3 @@ fun WearContactListScreen( } } }--private fun statusLine(snapshot: WearSnapshot): String {- val manifest = snapshot.manifest ?: return "${snapshot.contacts.size} contacts on watch"- return if (manifest.truncated) {- "${manifest.includedContacts} of ${manifest.totalContacts} contacts (watch limit)"- } else {- "${manifest.includedContacts} contacts on watch"- }-}
metadata_data/photos/contacts/wear/1.png
diff --git a/metadata_data/photos/contacts/wear/1.png b/metadata_data/photos/contacts/wear/1.pngindex 11f384b57b..18e236c892 100644Binary files a/metadata_data/photos/contacts/wear/1.png and b/metadata_data/photos/contacts/wear/1.png differ