Modern Apps git

← Modern-Apps.git

maps: dialogs are routes and every route has a capture

Commit
9aed148b0fa6a38129ee88cf125021ebae77afa3
Author
Vayun Mathur <[email protected]>
When
2026-12-01 19:23 UTC (4 days ago)
Parents
be95e38
lintVitalRelease on HEAD failed with 15 errors: 9 DialogAsRoute,
4 RouteScreenshotCoverage, 1 ScaffoldSearch and 1
FixtureDeterminism (a fuller release re-analysis surfaces 27
fixture hits; see below). Every gated dialog is now a dialog
destination: Route.GoogleConsentDialog,
ContactAddressChooserDialog, EndTripDialog,
RenameSavedPlaceDialog, CreateSavedListDialog and
AddSavedPlaceToListDialog are DialogPage() entries in
Navigation.kt with their arguments in the route and stateless
content under ui/dialogs/. Hosts that can act on the ViewModels
do so in the destination (consent, saved-places edits, end-trip);
the contact chooser, whose delivery differs between the search
sheet and the collapsed search bar, returns its pick through the
result registry under the RESULT_CONTACT_ADDRESS_SEARCH /
RESULT_CONTACT_ADDRESS_BAR keys the pushing site chose. MapPage
pushes consent once from the DataStore asked-gate (surviving
singleTop warm starts; no local show-state), and the contact
result wiring lives in MapContactAddressEffects so MapPage stays
under the file-length limit. No DIALOG LOCAL EXCEPTION was
needed: every flow here is serializable into route arguments.
This cherry-picks the earlier agent-lint-misc maps commit
(b2e6033) onto current HEAD; DialogAsRoute no longer flags
ContactAddressButton because the chooser definition moved under
ui/dialogs/ (exempt as a definition) and both call sites now
push Route.ContactAddressChooserDialog instead of gating a
local AddressChooserDialog/AlertDialog on remember-state.

Screenshot coverage: deterministic captures 6-map-page,
7-settings-page, 8-saved-places-page (the real stateless
SavedPlacesContent, extracted from the page) and 9-14 for the
six new dialog routes, all literal fixtures in group phone; the
metadata photos were regenerated to match. One honest
exemption in Route.kt: StreetView renders a live Google
panorama inside a GL sphere, so no deterministic Layoutlib
capture exists. SearchSheet keeps its sheet-local pill field
under a SCAFFOLD SEARCH EXCEPTION: the sheet over the live map
is the results surface itself and has no AppScaffold host.

FixtureDeterminism (the other 26 hits a fresh release analysis
reports, in test files HEAD carries without markers): files
whose timestamps must be seeded relative to the wall clock the
code under test reads internally (location-fix freshness, ETA
countdowns, departure relative times) carry the prescribed
FIXTURE RELATIVE-TIME EXCEPTION with that reason;
MapsTransitC5Test and the navigating metadata preview instead
use a named fixed instant (2026-01-17T12:00:00Z), since they
pass an explicit anchor / render a capture. maps/AGENTS.md
documents the dialog-route and capture conventions.

Note: :maps:lintVitalRelease can restore stale partial results
from the build cache (test sources are not declared inputs,
yet FixtureDeterminism scans them from disk), so the release
verification below was run fresh with --no-build-cache after
removing maps/build.

Verified: fresh ./gradlew :maps:lint :maps:lintVitalRelease
(--no-build-cache) green, :maps:testDevUnitTest passes (957
tests, 0 failures), and :maps:compileDevScreenshotTestKotlin
compiles the new previews.

Diff

maps/AGENTS.md
diff --git a/maps/AGENTS.md b/maps/AGENTS.mdindex 39e5e2756b..e2e918defb 100644--- a/maps/AGENTS.md+++ b/maps/AGENTS.md@@ -5,7 +5,7 @@ _Install: ./install maps (dev by default)._ - Gradle: :maps / dir: maps/ - Package roots present: ui, data, domain, platform, service, intents, util (single JNI-exception file)-- Entry files: MainActivity.kt (no Route.kt — `Route` + `Navigation` are inline)+- Entry files: MainActivity.kt, Route.kt, Navigation.kt (`Route` + `Navigation` in their own files beside it) - Deps: :library:map, :library:image, :library:network, :library:downloadservice - Metadata: metadata_data/maps.md (present) - Rust: yes / screenshotTest: yes@@ -19,7 +19,8 @@ _Install: ./install maps (dev by default)._ - Google is used for exactly two opt-in features (Settings → Google services): Street View and non-review place details (photos, hours, phone/website, popular times) via `GooglePoiDataSource`. No Google search, traffic, POI discovery or reviews - Handles external `geo:` / `google.navigation:` / Google-Maps links from other apps **Architecture / data-flow:** `ui/` map surface + sheets over per-concern `platform/` ViewModels (`SelectedFeatureViewModel`, `MapsSearchViewModel`, `SavedPlacesViewModel`, …) → `data/` stores/parsers + `data/OfflineRouter*` routing against the memory-mapped archive; guidance runs in the `service/NavigationService` foreground service via `NavigationSessionManager`. `onCreateBeforeContent`: `NetworkClient.init(FIRST_PARTY)` → delete the legacy `world_z0-6.pmtiles` → route the cold-start deep link; `Content()` gates on the `.mamaps` download before the map renders.-**Entry points + reading order:** `Route` (`MapPage` / `SavedPlacesPage` / `SettingsPage`, inline) → `MainActivity.kt` (`handleIntent`, `navigateTo`) → `ui/MapPage.kt` → `platform/SelectedFeatureViewModel.kt` → `data/OfflineRouterRoadRoutes.kt`.+**Entry points + reading order:** `Route` (`MapPage` / `SavedPlacesPage` / `SettingsPage` / `StreetView` / `Navigating` + dialog destinations) → `MainActivity.kt` (`handleIntent`, `navigateTo`) → `ui/MapPage.kt` → `platform/SelectedFeatureViewModel.kt` → `data/OfflineRouterRoadRoutes.kt`.+**Dialogs + screenshots:** every dialog is a `Route.…Dialog` destination (`DialogPage()` entries in `Navigation.kt`, args in the route, stateless content under `ui/dialogs/`; hosts act on the ViewModels, the contact chooser returns its pick via the `RESULT_CONTACT_ADDRESS_*` result keys) — never `show…`/pending-target state in a screen. Each route has a deterministic capture in `src/screenshotTest` (`<n>-<route-key>`, group `phone`); `StreetView` is exempted in `Route.kt` (live Google panorama + GL sphere). Search is a sheet over the live map, so `SearchSheet` carries a `SCAFFOLD SEARCH EXCEPTION`. **Gotchas:** - The `.mamaps` gate hosts app start — the archive URL must be live before a version ships; `adb push` the file to sideload a locally built archive - `singleTop` warm-start geo/navigation links arrive via `onNewIntent`, not a fresh `onCreate`@@ -27,8 +28,10 @@ _Install: ./install maps (dev by default)._ - `util/` now holds only `OfflineRouter.kt` (JNI package exception); car, cross-app clients and ViewModels all live in closed roots (`platform/`, `intents/`)  ## Key files-### Root — entry + inline navigation-- com/vayunmathur/maps/MainActivity.kt — Route, Navigation, geo-link handling, archive gate+### Root — entry + navigation+- com/vayunmathur/maps/MainActivity.kt — geo-link handling, archive gate+- com/vayunmathur/maps/Route.kt — `Route` destinations incl. `…Dialog` routes+- com/vayunmathur/maps/Navigation.kt — `MainNavigation` entries (`DialogPage()` dialog hosts) ### platform/ — Android Auto surface - com/vayunmathur/maps/platform/MapsCarAppService.kt - com/vayunmathur/maps/platform/MapsSession.kt@@ -83,6 +86,8 @@ _Install: ./install maps (dev by default)._ - com/vayunmathur/maps/ui/PlaceSheetHours.kt - com/vayunmathur/maps/ui/PlaceActionRow.kt - com/vayunmathur/maps/ui/ContactAddressButton.kt+- com/vayunmathur/maps/ui/MapContactAddressEffects.kt — consent route push + contact chooser result delivery+- com/vayunmathur/maps/ui/dialogs/ — stateless dialog contents + route hosts (Google consent, contact chooser, end-trip, saved-places rename/create/add-to-list, shared text entry) - com/vayunmathur/maps/ui/SearchResultLayer.kt - com/vayunmathur/maps/ui/RouteSheet.kt - com/vayunmathur/maps/ui/RouteSheetTabs.kt
maps/src/main/java/com/vayunmathur/maps/Navigation.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/Navigation.kt b/maps/src/main/java/com/vayunmathur/maps/Navigation.ktindex 747c38f750..2b35b298e4 100644--- a/maps/src/main/java/com/vayunmathur/maps/Navigation.kt+++ b/maps/src/main/java/com/vayunmathur/maps/Navigation.kt@@ -4,6 +4,7 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.lifecycle.viewmodel.compose.viewModel+import com.vayunmathur.library.util.DialogPage import com.vayunmathur.library.util.FullscreenPage import com.vayunmathur.library.util.ListDetailPage import com.vayunmathur.library.util.ListPage@@ -17,6 +18,12 @@ import com.vayunmathur.maps.platform.SelectedFeatureViewModel import com.vayunmathur.maps.platform.TransitStopsViewModel import com.vayunmathur.maps.ui.MapPage import com.vayunmathur.maps.ui.SavedPlacesPage+import com.vayunmathur.maps.ui.dialogs.AddSavedPlaceToListDialog+import com.vayunmathur.maps.ui.dialogs.ContactAddressChooserDialog+import com.vayunmathur.maps.ui.dialogs.CreateSavedListDialog+import com.vayunmathur.maps.ui.dialogs.EndTripDialog+import com.vayunmathur.maps.ui.dialogs.GoogleConsentDialog+import com.vayunmathur.maps.ui.dialogs.RenameSavedPlaceDialog import com.vayunmathur.maps.ui.settings.MapSettingsPage  @Composable@@ -83,5 +90,29 @@ fun Navigation(                 lat = route.lat, lon = route.lon, onClose = { backStack.pop() },             )         }+        // Dialog destinations: every dialog is a route with DialogPage()+        // metadata, its arguments in the route, and stateless content under+        // ui/dialogs/ — never show…/pending-target state in the screen that+        // asked. Hosts that can act on the ViewModels do so here; the+        // contact chooser, whose delivery differs per pushing site, returns+        // its pick through the result registry under its route's result key.+        entry<Route.GoogleConsentDialog>(metadata = DialogPage()) {+            GoogleConsentDialog(backStack, settingsViewModel)+        }+        entry<Route.ContactAddressChooserDialog>(metadata = DialogPage()) { route ->+            ContactAddressChooserDialog(backStack, route)+        }+        entry<Route.EndTripDialog>(metadata = DialogPage()) {+            EndTripDialog(backStack)+        }+        entry<Route.RenameSavedPlaceDialog>(metadata = DialogPage()) { route ->+            RenameSavedPlaceDialog(backStack, savedPlacesViewModel, route)+        }+        entry<Route.CreateSavedListDialog>(metadata = DialogPage()) {+            CreateSavedListDialog(backStack, savedPlacesViewModel)+        }+        entry<Route.AddSavedPlaceToListDialog>(metadata = DialogPage()) { route ->+            AddSavedPlaceToListDialog(backStack, savedPlacesViewModel, route)+        }     } }
maps/src/main/java/com/vayunmathur/maps/Route.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/Route.kt b/maps/src/main/java/com/vayunmathur/maps/Route.ktindex ecb89e7a2f..ca65a61372 100644--- a/maps/src/main/java/com/vayunmathur/maps/Route.kt+++ b/maps/src/main/java/com/vayunmathur/maps/Route.kt@@ -17,9 +17,67 @@ sealed interface Route: NavKey {     @Serializable     data object SavedPlacesPage: Route     /** Full-screen Street View viewer for the nearest pano to a point. */+    // SCREENSHOT COVERAGE EXCEPTION: StreetView: renders a live Google panorama fetched over the network inside a GL sphere; without network/GL only its black loading box exists, so no deterministic Layoutlib capture is possible.     @Serializable     data class StreetView(val lat: Double, val lon: Double): Route     /** Turn-by-turn UI over the map, driven by the guidance engine. */     @Serializable     data class Navigating(val destLabel: String, val mode: RouteService.TravelMode): Route++    /**+     * First-launch Google services consent dialog (`DialogPage()`). No+     * arguments: the host records the choice through the settings+     * ViewModel, which also marks consent as asked, so it never re-pushes.+     */+    @Serializable+    data object GoogleConsentDialog : Route++    /**+     * Chooser for a contact pick that resolved to several postal addresses+     * (`DialogPage()`). The candidate addresses travel in the route; the+     * picked address returns through the result registry under+     * [resultKey], which the pushing site chose (search sheet vs search+     * bar deliver a picked address differently).+     */+    @Serializable+    data class ContactAddressChooserDialog(+        val addresses: List<String>,+        val resultKey: String,+    ) : Route++    /**+     * End-trip confirmation dialog (`DialogPage()`), pushed over+     * [Navigating]. No arguments: confirming stops the guidance session+     * and pops the [Navigating] entry underneath.+     */+    @Serializable+    data object EndTripDialog : Route++    /**+     * Rename dialog for one saved place (`DialogPage()`). The place+     * identity (name + coordinates, its stored key) travels in the route;+     * the host renames through the saved-places ViewModel.+     */+    @Serializable+    data class RenameSavedPlaceDialog(+        val name: String,+        val lat: Double,+        val lon: Double,+    ) : Route++    /** Create-list dialog for saved places (`DialogPage()`). No arguments. */+    @Serializable+    data object CreateSavedListDialog : Route++    /**+     * Add-to-list dialog for one saved place (`DialogPage()`). The place+     * identity travels in the route; the offered lists are read from the+     * saved-places ViewModel by the host.+     */+    @Serializable+    data class AddSavedPlaceToListDialog(+        val name: String,+        val lat: Double,+        val lon: Double,+    ) : Route }
maps/src/main/java/com/vayunmathur/maps/ui/ContactAddressButton.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/ContactAddressButton.kt b/maps/src/main/java/com/vayunmathur/maps/ui/ContactAddressButton.ktindex 11867a74ad..dcc213df75 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/ContactAddressButton.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/ContactAddressButton.kt@@ -14,11 +14,6 @@ import android.net.Uri import android.os.Build import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts-import androidx.compose.foundation.clickable-import androidx.compose.foundation.layout.fillMaxWidth-import androidx.compose.foundation.layout.heightIn-import androidx.compose.foundation.lazy.LazyColumn-import androidx.compose.foundation.lazy.items import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf@@ -28,16 +23,10 @@ import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource-import androidx.compose.ui.unit.dp-import com.vayunmathur.library.ui.AlertDialog import com.vayunmathur.library.ui.IconButton import com.vayunmathur.library.ui.IconContacts-import com.vayunmathur.library.ui.ListItem-import com.vayunmathur.library.ui.Text-import com.vayunmathur.library.ui.TextButton import com.vayunmathur.library.ui.rememberMessenger import com.vayunmathur.library.ui.rememberPermissionRequest-import com.vayunmathur.library.ui.R as UiR import com.vayunmathur.maps.R as MapsR import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch@@ -69,8 +58,8 @@ import kotlinx.coroutines.withContext  * The picker returns a short-lived *session URI* over which we read exactly the  * chosen row(s) — no READ_CONTACTS. Because the contract has no guaranteed  * pre-selected-single-item guarantee across OEMs, we read *all* StructuredPostal- * addresses in the session: exactly one → use it; several → present an in-app- * chooser ([AddressChooserDialog]) so the user picks the specific address rather+ * addresses in the session: exactly one → use it; several → present the+ * ContactAddressChooserDialog route destination so the user picks the specific address rather  * than us taking the first.  *  * Older devices (and Android 17 images without the picker) fall through, and@@ -82,7 +71,7 @@ import kotlinx.coroutines.withContext  *  2. Fallback — the AndroidX [ActivityResultContracts.PickContact] contract,  *     which returns a whole-contact URI. We resolve its postal addresses (needs  *     READ_CONTACTS, requested via the shared [rememberPermissionRequest]); if the- *     contact has several, the same in-app chooser is shown.+ *     contact has several, the same chooser route is pushed.  *  * A cancel, a contact with no postal address, or an OEM with no picker at all is a  * quiet no-op (with a brief toast only when literally nothing can handle the pick).@@ -90,7 +79,11 @@ import kotlinx.coroutines.withContext  * street/city/region/postcode/country) and hands the string to [onAddress].  */ @Composable-fun ContactAddressButton(onAddress: (String) -> Unit, modifier: Modifier = Modifier) {+fun ContactAddressButton(+    onAddress: (String) -> Unit,+    modifier: Modifier = Modifier,+    onShowChooser: (List<String>) -> Unit = {},+) {     val context = LocalContext.current     val scope = rememberCoroutineScope()     val messenger = rememberMessenger()@@ -101,16 +94,14 @@ fun ContactAddressButton(onAddress: (String) -> Unit, modifier: Modifier = Modif     // retried once the permission is granted. Null while nothing is pending.     var pendingContact by remember { mutableStateOf<Uri?>(null) } -    // When a pick yields several addresses we can't disambiguate, we show a chooser.-    var addressChoices by remember { mutableStateOf<List<String>>(emptyList()) }-     // Deliver the resolved address(es): none → no-op; one → use it; several → let-    // the user pick the specific one (never collapse to the first).+    // the user pick the specific one (never collapse to the first) in the+    // ContactAddressChooserDialog route destination the caller pushes.     fun deliver(addresses: List<String>) {         when {             addresses.isEmpty() -> Unit             addresses.size == 1 -> onAddress(addresses.first())-            else -> addressChoices = addresses+            else -> onShowChooser(addresses)         }     } @@ -198,42 +189,5 @@ fun ContactAddressButton(onAddress: (String) -> Unit, modifier: Modifier = Modif         IconContacts()     } -    if (addressChoices.isNotEmpty()) {-        AddressChooserDialog(-            addresses = addressChoices,-            onPick = { picked ->-                addressChoices = emptyList()-                onAddress(picked)-            },-            onDismiss = { addressChoices = emptyList() },-        )-    }-}--/** In-app chooser for when a pick resolves to several postal addresses: lists each- *  [FORMATTED_ADDRESS] (or composed) string; tapping one selects it. */-@Composable-private fun AddressChooserDialog(-    addresses: List<String>,-    onPick: (String) -> Unit,-    onDismiss: () -> Unit,-) {-    AlertDialog(-        onDismissRequest = onDismiss,-        title = { Text(stringResource(com.vayunmathur.maps.R.string.choose_address)) },-        text = {-            LazyColumn(Modifier.fillMaxWidth().heightIn(max = 400.dp)) {-                items(addresses) { address ->-                    ListItem(-                        content = { Text(address) },-                        modifier = Modifier.clickable { onPick(address) },-                    )-                }-            }-        },-        confirmButton = {-            TextButton(onClick = onDismiss) { Text(stringResource(UiR.string.cancel)) }-        },-    ) } 
maps/src/main/java/com/vayunmathur/maps/ui/MapContactAddressEffects.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapContactAddressEffects.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapContactAddressEffects.ktnew file mode 100644index 0000000000..3fd8a0b86f--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapContactAddressEffects.kt@@ -0,0 +1,81 @@+package com.vayunmathur.maps.ui++import android.content.Context+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.rememberUpdatedState+import com.vayunmathur.library.map.CameraState+import com.vayunmathur.library.map.GeoPoint+import com.vayunmathur.library.ui.Messenger+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.library.util.ResultEffect+import com.vayunmathur.maps.Route+import com.vayunmathur.maps.domain.searchBiasPoint+import com.vayunmathur.maps.domain.visibleBoundsOrWorld+import com.vayunmathur.maps.platform.MapsSearchViewModel+import com.vayunmathur.maps.platform.SearchActions+import com.vayunmathur.maps.platform.SelectedFeatureViewModel+import com.vayunmathur.maps.ui.dialogs.RESULT_CONTACT_ADDRESS_BAR+import com.vayunmathur.maps.ui.dialogs.RESULT_CONTACT_ADDRESS_SEARCH+import com.vayunmathur.maps.ui.dialogs.shouldShowGoogleConsent++/**+ * Map-page dialog wiring, extracted so MapPage.kt stays under the file+ * length limit: the first-launch Google consent route push and the contact+ * address chooser's result delivery. Returns the collapsed search bar's+ * deliver path (resolve + select straight onto the map), which is also the+ * single-address path and the bar chooser's result target.+ */+@Composable+internal fun MapContactAddressEffects(+    context: Context,+    backStack: NavBackStack<Route>,+    camera: CameraState,+    searchViewModel: MapsSearchViewModel,+    viewModel: SelectedFeatureViewModel,+    messenger: Messenger,+    noResultsMessage: String,+    userPosition: GeoPoint,+    searchActions: SearchActions?,+): (String) -> Unit {+    // First-launch Google consent is a dialog route destination: push it+    // once when the DataStore gate says it was never asked. The host records+    // the answer (which marks consent asked), so it never re-pushes. Warm+    // starts re-enter through onNewIntent into this same stack, and the+    // asked flag — not local state — keeps the dialog from returning.+    LaunchedEffect(Unit) {+        if (+            shouldShowGoogleConsent(com.vayunmathur.library.util.DataStoreUtils.getInstance(context)) &&+            backStack.backStack.none { it is Route.GoogleConsentDialog }+        ) {+            backStack.add(Route.GoogleConsentDialog)+        }+    }+    val deliverBarContactAddress: (String) -> Unit = { address ->+        val near = searchBiasPoint(camera.visibleBoundsOrWorld(), userPosition)+        searchViewModel.resolveAndSelect(address, near.latitude, near.longitude) { place ->+            if (place != null) {+                // Fly there and open the peek pane, the same direct-open+                // path a geo:/maps deep link takes.+                viewModel.selectAndFocus(place, zoom = (camera.position.zoom).coerceAtLeast(14.0))+            } else {+                messenger.show(noResultsMessage)+            }+        }+    }+    // Contact chooser results return through the result registry: the+    // search sheet's pick runs its search action, the bar's pick resolves.+    // ResultEffect collects from its first composition, so both targets go+    // through rememberUpdatedState or a pick would land on the search+    // action (and bias position) of whatever was composed at start.+    val currentSearchActions by rememberUpdatedState(searchActions)+    val currentDeliver by rememberUpdatedState(deliverBarContactAddress)+    ResultEffect<String>(RESULT_CONTACT_ADDRESS_SEARCH) { address ->+        currentSearchActions?.pickContactAddress(address)+    }+    ResultEffect<String>(RESULT_CONTACT_ADDRESS_BAR) { address ->+        currentDeliver(address)+    }+    return deliverBarContactAddress+}
maps/src/main/java/com/vayunmathur/maps/ui/MapContentBox.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapContentBox.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapContentBox.ktindex bf2640f76e..2420442001 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapContentBox.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapContentBox.kt@@ -249,11 +249,7 @@ internal fun MapPageScope.MapContentBox(                         steps = navSession.route?.step ?: emptyList(),                         autoFollow = chrome.autoFollow,                         onRecenter = { chrome.autoFollow = true },-                        onEndTrip = {-                            onExitNavigating()-                            chrome.autoFollow = true-                            chrome.northUp = false-                        },+                        onRequestEndTrip = { backStack.add(com.vayunmathur.maps.Route.EndTripDialog) },                         onDismissArrival = { onExitNavigating() },                         postedLimit = chrome.postedLimit,                         northUp = chrome.northUp,
maps/src/main/java/com/vayunmathur/maps/ui/MapPage.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapPage.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapPage.ktindex 0c0ed02a61..2449fb868c 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapPage.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapPage.kt@@ -142,13 +142,6 @@ fun MapPage(     val transitEnabled = state.transitEnabled     val globeEnabled = state.globeEnabled     val googleServices = state.googleServices-    var googleConsentDone by remember {-        mutableStateOf(-            !shouldShowGoogleConsent(-                com.vayunmathur.library.util.DataStoreUtils.getInstance(context)-            )-        )-    }     // Enabling the globe at street zoom shows nothing new: the sphere only     // reads past the detail threshold. Zoom out to reveal it, so the toggle     // answers visibly instead of arming a mode the user cannot see.@@ -246,6 +239,18 @@ fun MapPage(         onCloseSearch = { sheetStack.popSheet() },     ) +    val deliverBarContactAddress = MapContactAddressEffects(+        context = context,+        backStack = backStack,+        camera = camera,+        searchViewModel = searchViewModel,+        viewModel = viewModel,+        messenger = messenger,+        noResultsMessage = noResultsMessage,+        userPosition = userPosition,+        searchActions = searchActions,+    )+     val scope = MapPageScope(         context = context,         backStack = backStack,@@ -315,14 +320,12 @@ fun MapPage(         selectedAlternative = selectedAlternative,         onSelectAlternative = { selectedAlternative = it },         onStartNavigating = onStartNavigating,+        onContactAddress = deliverBarContactAddress,         onExitNavigating = {             stopNavigation(context)             exitNavigating()         },     )-    if (!googleConsentDone) {-        GoogleConsentDialog(settingsViewModel) { googleConsentDone = true }-    }     if (wide) {         scope.MapWideHost(             searchActions = searchActions,
maps/src/main/java/com/vayunmathur/maps/ui/MapPageScope.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapPageScope.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapPageScope.ktindex 79ec123906..2f3f2c1cab 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapPageScope.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapPageScope.kt@@ -148,6 +148,8 @@ internal class MapPageScope(     val selectedAlternative: RouteService.Route? = null,     val onSelectAlternative: (RouteService.Route?) -> Unit = {},     val onExitNavigating: () -> Unit = {},+    /** Deliver a contact address picked from the collapsed search bar (resolve + select). */+    val onContactAddress: (String) -> Unit = {}, ) {     /** Top of the sheet stack: which sheet/panel/dialog is showing. */     val sheetTop: SheetRoute get() = sheetStack.backStack.last()
maps/src/main/java/com/vayunmathur/maps/ui/MapSearchBarSection.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapSearchBarSection.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapSearchBarSection.ktindex 5f2cfe97bc..fa273e3680 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapSearchBarSection.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapSearchBarSection.kt@@ -27,21 +27,18 @@ internal fun MapPageScope.MapSearchBarSection(     if (searchBarVisible) {         MapSearchBar(             onOpenSearch = { query -> openSearch(query, null) },-            onContactAddress = { address ->-                val near = searchBiasPoint(camera.visibleBoundsOrWorld(), userPosition)-                searchViewModel.resolveAndSelect(address, near.latitude, near.longitude) { place ->-                    if (place != null) {-                        // Fly there and open the peek pane, the same direct-open-                        // path a geo:/maps deep link takes (pendingPlace is-                        // pushed on the sheet stack by MapSheetEffects).-                        viewModel.selectAndFocus(-                            place,-                            zoom = (camera.position.zoom).coerceAtLeast(14.0),-                        )-                    } else {-                        messenger.show(noResultsMessage)-                    }-                }+            // Fly there and open the peek pane, the same direct-open path a+            // geo:/maps deep link takes. A pick that needs the chooser goes+            // to the ContactAddressChooserDialog route and returns through+            // the result registry to this same deliver path (see MapPage).+            onContactAddress = onContactAddress,+            onShowContactChooser = { addresses ->+                backStack.add(+                    com.vayunmathur.maps.Route.ContactAddressChooserDialog(+                        addresses,+                        com.vayunmathur.maps.ui.dialogs.RESULT_CONTACT_ADDRESS_BAR,+                    )+                )             },             modifier = modifier                 // Measured, not assumed: the bar's height is what the FAB stack
maps/src/main/java/com/vayunmathur/maps/ui/MapSheets.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapSheets.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapSheets.ktindex d825908ee6..bcd7ae2979 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapSheets.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapSheets.kt@@ -53,6 +53,14 @@ internal fun MapPageScope.MapSheets(                 // keyboard. Keep this free of inset modifiers so the sheet                 // is not double-counted once the scaffold lifts it.                 Modifier.padding(top = Spacing.sm),+                onShowContactChooser = { addresses ->+                    backStack.add(+                        com.vayunmathur.maps.Route.ContactAddressChooserDialog(+                            addresses,+                            com.vayunmathur.maps.ui.dialogs.RESULT_CONTACT_ADDRESS_SEARCH,+                        )+                    )+                },             )         }     },
maps/src/main/java/com/vayunmathur/maps/ui/MapSidePanel.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapSidePanel.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapSidePanel.ktindex c372e275be..aa8c1c9f9c 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapSidePanel.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapSidePanel.kt@@ -56,11 +56,12 @@ fun MapSidePanel(     alternatives: List<RouteService.Route> = emptyList(),     selectedAlternative: RouteService.Route? = null,     onSelectAlternative: (RouteService.Route?) -> Unit = {},+    onShowContactChooser: (List<String>) -> Unit = {}, ) {     Surface(modifier = modifier) {         Column(Modifier.fillMaxSize().windowInsetsPadding(WindowInsets.systemBars).imePadding()) {             if (searchOpen) {-                SearchSheet(searchState, searchActions, Modifier.padding(top = Spacing.sm))+                SearchSheet(searchState, searchActions, Modifier.padding(top = Spacing.sm), onShowContactChooser = onShowContactChooser)             } else {                 val feature = selectedFeature                 if (feature != null) {
maps/src/main/java/com/vayunmathur/maps/ui/MapWideHost.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/MapWideHost.kt b/maps/src/main/java/com/vayunmathur/maps/ui/MapWideHost.ktindex 550291bf22..6c2395f86d 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/MapWideHost.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/MapWideHost.kt@@ -77,6 +77,14 @@ internal fun MapPageScope.MapWideHost(                 searchOpen = true,                 searchState = searchState,                 searchActions = searchActions,+                        onShowContactChooser = { addresses ->+                            backStack.add(+                                com.vayunmathur.maps.Route.ContactAddressChooserDialog(+                                    addresses,+                                    com.vayunmathur.maps.ui.dialogs.RESULT_CONTACT_ADDRESS_SEARCH,+                                )+                            )+                        },                 panelState = panelState,                 panelActions = panelActions,                 selectedFeature = selectedFeature,
maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt b/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.ktindex 86b9db1a48..5093c42d38 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/NavigationOverlay.kt@@ -46,7 +46,6 @@ import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.SmallFloatingActionButton import com.vayunmathur.library.ui.Text import com.vayunmathur.maps.R-import com.vayunmathur.library.ui.ConfirmDialog import com.vayunmathur.library.ui.Spacing import com.vayunmathur.maps.data.PostedLimit import com.vayunmathur.maps.ui.theme.MapChromeMetrics@@ -74,7 +73,6 @@ fun NavigationOverlay(     steps: List<RouteService.Step>,     autoFollow: Boolean,     onRecenter: () -> Unit,-    onEndTrip: () -> Unit,     onDismissArrival: () -> Unit,     modifier: Modifier = Modifier,     postedLimit: PostedLimit? = null,@@ -83,25 +81,11 @@ fun NavigationOverlay(     destinationName: String? = null,     darkBasemap: Boolean = false,     route: RouteService.Route? = null,+    onRequestEndTrip: () -> Unit = {}, ) {     if (navState is NavigationSessionManager.NavState.Idle) return      var showSteps by remember { mutableStateOf(false) }-    // Ending a trip discards the route and stops guidance, and the button sat one tap away from-    // a driver's thumb with no confirmation at all.-    var confirmEndTrip by remember { mutableStateOf(false) }--    if (confirmEndTrip) {-        ConfirmDialog(-            title = stringResource(R.string.nav_end_confirm_title),-            message = stringResource(R.string.nav_end_confirm_message),-            confirmLabel = stringResource(R.string.nav_action_end),-            dismissLabel = stringResource(UiR.string.cancel),-            destructive = true,-            onConfirm = onEndTrip,-            onDismiss = { confirmEndTrip = false },-        )-    }      Box(modifier.fillMaxSize()) {         // ---- Top maneuver banner / status ----@@ -201,7 +185,7 @@ fun NavigationOverlay(             is NavigationSessionManager.NavState.Navigating -> {                 EtaStrip(                     progress = navState.progress,-                    onEndTrip = { confirmEndTrip = true },+                    onEndTrip = onRequestEndTrip,                     onToggleSteps = { showSteps = !showSteps },                     modifier = Modifier                         .align(Alignment.BottomCenter)
maps/src/main/java/com/vayunmathur/maps/ui/SavedPlacesPage.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/SavedPlacesPage.kt b/maps/src/main/java/com/vayunmathur/maps/ui/SavedPlacesPage.ktindex 83f12736c0..8ada24024c 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/SavedPlacesPage.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/SavedPlacesPage.kt@@ -1,7 +1,6 @@ package com.vayunmathur.maps.ui import com.vayunmathur.maps.data.string -import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn@@ -17,7 +16,6 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.unit.dp import com.vayunmathur.library.ui.AppScaffold import com.vayunmathur.library.ui.DesktopMaxWidthContainer-import com.vayunmathur.library.ui.Button import com.vayunmathur.library.ui.DropdownMenu import com.vayunmathur.library.ui.DropdownMenuItem import com.vayunmathur.library.ui.ExperimentalMaterial3Api@@ -28,12 +26,9 @@ import com.vayunmathur.library.ui.IconDelete import com.vayunmathur.library.ui.IconList import com.vayunmathur.library.ui.IconMoreVert import com.vayunmathur.library.ui.IconStar-import com.vayunmathur.library.ui.OutlinedTextField import com.vayunmathur.library.ui.SettingsRow import com.vayunmathur.library.ui.SettingsSection import com.vayunmathur.library.ui.Text-import com.vayunmathur.library.ui.TextButton-import com.vayunmathur.library.ui.AlertDialog import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.maps.R import com.vayunmathur.library.ui.R as UiR@@ -53,10 +48,45 @@ fun SavedPlacesPage(backStack: NavBackStack<Route>, viewModel: SavedPlacesViewMo     val saved by viewModel.saved.collectAsState()     val lists by viewModel.lists.collectAsState() -    var renameTarget by remember { mutableStateOf<SavedPlace?>(null) }-    var addToListTarget by remember { mutableStateOf<SavedPlace?>(null) }-    var showCreateList by remember { mutableStateOf(false) }+    // Every dialog on this page is a route destination: the row actions push+    // Route.…Dialog entries (DialogPage() hosts in Navigation) carrying the+    // place identity, and those hosts apply through the ViewModel — no+    // rename/add-to-list/create target state lives in this screen.+    SavedPlacesContent(+        saved = saved,+        lists = lists,+        backStack = backStack,+        onRename = { place ->+            backStack.add(Route.RenameSavedPlaceDialog(place.name, place.lat, place.lon))+        },+        onAddToList = { place ->+            backStack.add(Route.AddSavedPlaceToListDialog(place.name, place.lat, place.lon))+        },+        onRemove = { viewModel.removeSaved(it) },+        onCreateList = { backStack.add(Route.CreateSavedListDialog) },+        onDeleteList = { viewModel.deleteList(it) },+        onRemoveFromList = { name, place -> viewModel.removeFromList(name, place) },+    )+} +/**+ * The stateless saved-places list (also rendered by screenshot captures).+ * [backStack] only feeds the scaffold's back handling; dialog pushes go+ * through the callbacks.+ */+@OptIn(ExperimentalMaterial3Api::class)+@Composable+internal fun SavedPlacesContent(+    saved: List<SavedPlace>,+    lists: Map<String, List<SavedPlace>>,+    backStack: NavBackStack<Route>,+    onRename: (SavedPlace) -> Unit,+    onAddToList: (SavedPlace) -> Unit,+    onRemove: (SavedPlace) -> Unit,+    onCreateList: () -> Unit,+    onDeleteList: (String) -> Unit,+    onRemoveFromList: (String, SavedPlace) -> Unit,+) {     AppScaffold(         title = stringResource(R.string.saved_places_title),         backStack = backStack,@@ -85,9 +115,9 @@ fun SavedPlacesPage(backStack: NavBackStack<Route>, viewModel: SavedPlacesViewMo                 items(saved, key = { place -> "saved/${place.name}/${place.lat}/${place.lon}" }) { place ->                     SavedPlaceRow(                         place = place,-                        onRename = { renameTarget = place },-                        onAddToList = { addToListTarget = place },-                        onRemove = { viewModel.removeSaved(place) },+                        onRename = { onRename(place) },+                        onAddToList = { onAddToList(place) },+                        onRemove = { onRemove(place) },                     )                 }             }@@ -100,7 +130,7 @@ fun SavedPlacesPage(backStack: NavBackStack<Route>, viewModel: SavedPlacesViewMo                 SettingsRow(                     title = stringResource(R.string.saved_lists_new),                     leadingContent = { IconAdd() },-                    onClick = { showCreateList = true },+                    onClick = onCreateList,                 )             }             lists.forEach { (name, places) ->@@ -112,7 +142,7 @@ fun SavedPlacesPage(backStack: NavBackStack<Route>, viewModel: SavedPlacesViewMo                         ),                         leadingContent = { IconList() },                         trailingContent = {-                            IconButton(onClick = { viewModel.deleteList(name) }) { IconDelete() }+                            IconButton(onClick = { onDeleteList(name) }) { IconDelete() }                         },                     )                 }@@ -122,7 +152,7 @@ fun SavedPlacesPage(backStack: NavBackStack<Route>, viewModel: SavedPlacesViewMo                         modifier = Modifier.padding(start = 16.dp),                         leadingContent = { IconStar() },                         trailingContent = {-                            IconButton(onClick = { viewModel.removeFromList(name, place) }) { IconClose() }+                            IconButton(onClick = { onRemoveFromList(name, place) }) { IconClose() }                         },                     )                 }@@ -131,47 +161,6 @@ fun SavedPlacesPage(backStack: NavBackStack<Route>, viewModel: SavedPlacesViewMo         }     } -    renameTarget?.let { target ->-        TextEntryDialog(-            title = stringResource(R.string.saved_rename_title),-            initial = target.name,-            confirmLabel = stringResource(UiR.string.rename),-            onDismiss = { renameTarget = null },-            onConfirm = { newName ->-                viewModel.renameSaved(target, newName)-                renameTarget = null-            },-        )-    }--    if (showCreateList) {-        TextEntryDialog(-            title = stringResource(R.string.saved_lists_new),-            initial = "",-            confirmLabel = stringResource(UiR.string.create),-            onDismiss = { showCreateList = false },-            onConfirm = { name ->-                viewModel.createList(name)-                showCreateList = false-            },-        )-    }--    addToListTarget?.let { target ->-        AddToListDialog(-            lists = lists.keys.toList(),-            onDismiss = { addToListTarget = null },-            onPick = { listName ->-                viewModel.addToList(listName, target)-                addToListTarget = null-            },-            onCreateAndAdd = { listName ->-                viewModel.createList(listName)-                viewModel.addToList(listName, target)-                addToListTarget = null-            },-        )-    } }  @Composable@@ -206,67 +195,3 @@ private fun SavedPlaceRow(         },     ) }--@Composable-private fun TextEntryDialog(-    title: String,-    initial: String,-    confirmLabel: String,-    onDismiss: () -> Unit,-    onConfirm: (String) -> Unit,-) {-    var text by remember { mutableStateOf(initial) }-    AlertDialog(-        onDismissRequest = onDismiss,-        confirmButton = {-            Button(onClick = { onConfirm(text) }, enabled = text.isNotBlank()) {-                Text(confirmLabel)-            }-        },-        dismissButton = {-            TextButton(onClick = onDismiss) { Text(stringResource(UiR.string.cancel)) }-        },-        title = { Text(title) },-        text = {-            OutlinedTextField(-                value = text,-                onValueChange = { text = it },-                label = { Text(title) },-            )-        },-    )-}--@Composable-private fun AddToListDialog(-    lists: List<String>,-    onDismiss: () -> Unit,-    onPick: (String) -> Unit,-    onCreateAndAdd: (String) -> Unit,-) {-    var newName by remember { mutableStateOf("") }-    AlertDialog(-        onDismissRequest = onDismiss,-        confirmButton = {-            Button(onClick = { onCreateAndAdd(newName) }, enabled = newName.isNotBlank()) {-                Text(stringResource(UiR.string.create))-            }-        },-        dismissButton = {-            TextButton(onClick = onDismiss) { Text(stringResource(UiR.string.cancel)) }-        },-        title = { Text(stringResource(R.string.saved_action_add_to_list)) },-        text = {-            Column {-                lists.forEach { name ->-                    SettingsRow(title = name, leadingContent = { IconList() }, onClick = { onPick(name) })-                }-                OutlinedTextField(-                    value = newName,-                    onValueChange = { newName = it },-                    label = { Text(stringResource(R.string.saved_lists_new)) },-                )-            }-        },-    )-}
maps/src/main/java/com/vayunmathur/maps/ui/SearchSheet.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/SearchSheet.kt b/maps/src/main/java/com/vayunmathur/maps/ui/SearchSheet.ktindex 8b201bf575..17f9988528 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/SearchSheet.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/SearchSheet.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// SCAFFOLD SEARCH EXCEPTION: search is a sheet over the live map whose sheet is the results surface itself (bottom sheet / side panel, no AppScaffold host); this pill field is sheet-local, not screen-level search import androidx.compose.foundation.clickable import com.vayunmathur.maps.platform.SearchResult import com.vayunmathur.maps.data.string@@ -75,9 +77,10 @@ fun SearchSheet(     actions: SearchActions,     modifier: Modifier = Modifier,     autoFocus: Boolean = true,+    onShowContactChooser: (List<String>) -> Unit = {}, ) {     Column(modifier.fillMaxWidth()) {-        SearchField(state.query, actions, autoFocus)+        SearchField(state.query, actions, autoFocus, onShowContactChooser)         CategoryChips(             onCategory = { actions.setQuery(it.query) },             modifier = Modifier.fillMaxWidth().padding(vertical = Spacing.sm),@@ -113,7 +116,12 @@ fun SearchSheet(  * user is reaching for while there is text to clear.  */ @Composable-private fun SearchField(query: String, actions: SearchActions, autoFocus: Boolean) {+private fun SearchField(+    query: String,+    actions: SearchActions,+    autoFocus: Boolean,+    onShowContactChooser: (List<String>) -> Unit = {},+) {     val focusRequester = remember { FocusRequester() }     // The sheet exists to be typed into, so it opens with the caret already in the field.     LaunchedEffect(autoFocus) { if (autoFocus) focusRequester.requestFocus() }@@ -141,7 +149,7 @@ private fun SearchField(query: String, actions: SearchActions, autoFocus: Boolea                 singleLine = true,             )             if (query.isEmpty()) {-                ContactAddressButton(onAddress = { actions.pickContactAddress(it) })+                ContactAddressButton(onAddress = { actions.pickContactAddress(it) }, onShowChooser = onShowContactChooser)                 VoiceSearchButton(onResult = { actions.setQuery(it) })             } else {                 IconButton({ actions.setQuery("") }) { IconClose() }
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/AddSavedPlaceToListDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/AddSavedPlaceToListDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/AddSavedPlaceToListDialog.ktnew file mode 100644index 0000000000..a49d809cec--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/AddSavedPlaceToListDialog.kt@@ -0,0 +1,88 @@+package com.vayunmathur.maps.ui.dialogs++import androidx.compose.foundation.layout.Column+import androidx.compose.runtime.Composable+import androidx.compose.runtime.collectAsState+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.IconList+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.SettingsRow+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.R as UiR+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.maps.R+import com.vayunmathur.maps.Route+import com.vayunmathur.maps.data.SavedPlace+import com.vayunmathur.maps.platform.SavedPlacesViewModel++/**+ * Add-to-list dialog for one saved place, hosted as the+ * `Route.AddSavedPlaceToListDialog` destination (`DialogPage()`). The+ * place identity travels in the route and the offered lists come from the+ * saved-places ViewModel; picking (or creating) a list applies through the+ * ViewModel and pops — no result needs to travel back.+ */+@Composable+fun AddSavedPlaceToListDialog(+    backStack: NavBackStack<Route>,+    viewModel: SavedPlacesViewModel,+    route: Route.AddSavedPlaceToListDialog,+) {+    val lists by viewModel.lists.collectAsState()+    val place = SavedPlace(route.name, route.lat, route.lon)+    AddSavedPlaceToListDialogContent(+        lists = lists.keys.toList(),+        onDismiss = { backStack.pop() },+        onPick = { listName ->+            viewModel.addToList(listName, place)+            backStack.pop()+        },+        onCreateAndAdd = { listName ->+            viewModel.createList(listName)+            viewModel.addToList(listName, place)+            backStack.pop()+        },+    )+}++/** The stateless list picker, rendered directly by screenshot captures and tests. */+@Composable+internal fun AddSavedPlaceToListDialogContent(+    lists: List<String>,+    onDismiss: () -> Unit,+    onPick: (String) -> Unit,+    onCreateAndAdd: (String) -> Unit,+) {+    var newName by remember { mutableStateOf("") }+    AlertDialog(+        onDismissRequest = onDismiss,+        confirmButton = {+            Button(onClick = { onCreateAndAdd(newName) }, enabled = newName.isNotBlank()) {+                Text(stringResource(UiR.string.create))+            }+        },+        dismissButton = {+            TextButton(onClick = onDismiss) { Text(stringResource(UiR.string.cancel)) }+        },+        title = { Text(stringResource(R.string.saved_action_add_to_list)) },+        text = {+            Column {+                lists.forEach { name ->+                    SettingsRow(title = name, leadingContent = { IconList() }, onClick = { onPick(name) })+                }+                OutlinedTextField(+                    value = newName,+                    onValueChange = { newName = it },+                    label = { Text(stringResource(R.string.saved_lists_new)) },+                )+            }+        },+    )+}
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/ContactAddressChooserDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/ContactAddressChooserDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/ContactAddressChooserDialog.ktnew file mode 100644index 0000000000..d8059ee918--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/ContactAddressChooserDialog.kt@@ -0,0 +1,80 @@+package com.vayunmathur.maps.ui.dialogs++import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.heightIn+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.items+import androidx.compose.runtime.Composable+import androidx.compose.runtime.rememberCoroutineScope+import androidx.compose.ui.Modifier+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.unit.dp+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.R as UiR+import com.vayunmathur.library.util.LocalNavResultRegistry+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.maps.R as MapsR+import com.vayunmathur.maps.Route+import kotlinx.coroutines.launch++/** Result key: a contact address picked from the search sheet (delivered to its search actions). */+const val RESULT_CONTACT_ADDRESS_SEARCH = "maps.contact-address.search"++/** Result key: a contact address picked from the collapsed search bar (delivered to the map page). */+const val RESULT_CONTACT_ADDRESS_BAR = "maps.contact-address.bar"++/**+ * In-app chooser for when a contact pick resolves to several postal+ * addresses, hosted as the `Route.ContactAddressChooserDialog` destination+ * (`DialogPage()`). The candidates travel in the route; the picked address+ * returns through the result registry under the route's result key and the+ * destination pops after the result lands.+ */+@Composable+fun ContactAddressChooserDialog(+    backStack: NavBackStack<Route>,+    route: Route.ContactAddressChooserDialog,+) {+    val registry = LocalNavResultRegistry.current+    val scope = rememberCoroutineScope()+    ContactAddressChooserDialogContent(+        addresses = route.addresses,+        onPick = { picked ->+            scope.launch {+                registry.dispatchResult(route.resultKey, picked)+                backStack.pop()+            }+        },+        onDismiss = { backStack.pop() },+    )+}++/** The stateless address list, rendered directly by screenshot captures and tests. */+@Composable+internal fun ContactAddressChooserDialogContent(+    addresses: List<String>,+    onPick: (String) -> Unit,+    onDismiss: () -> Unit,+) {+    AlertDialog(+        onDismissRequest = onDismiss,+        title = { Text(stringResource(MapsR.string.choose_address)) },+        text = {+            LazyColumn(Modifier.fillMaxWidth().heightIn(max = 400.dp)) {+                items(addresses) { address ->+                    ListItem(+                        content = { Text(address) },+                        modifier = Modifier.clickable { onPick(address) },+                    )+                }+            }+        },+        confirmButton = {+            TextButton(onClick = onDismiss) { Text(stringResource(UiR.string.cancel)) }+        },+    )+}
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/CreateSavedListDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/CreateSavedListDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/CreateSavedListDialog.ktnew file mode 100644index 0000000000..838c3f5efc--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/CreateSavedListDialog.kt@@ -0,0 +1,32 @@+package com.vayunmathur.maps.ui.dialogs++import androidx.compose.runtime.Composable+import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.ui.R as UiR+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.maps.R+import com.vayunmathur.maps.Route+import com.vayunmathur.maps.platform.SavedPlacesViewModel++/**+ * Create-list dialog, hosted as the `Route.CreateSavedListDialog`+ * destination (`DialogPage()`). Confirming creates the list through the+ * saved-places ViewModel (the page underneath is flow-driven, so no result+ * needs to travel back) and pops.+ */+@Composable+fun CreateSavedListDialog(+    backStack: NavBackStack<Route>,+    viewModel: SavedPlacesViewModel,+) {+    TextEntryDialog(+        title = stringResource(R.string.saved_lists_new),+        initial = "",+        confirmLabel = stringResource(UiR.string.create),+        onDismiss = { backStack.pop() },+        onConfirm = { name ->+            viewModel.createList(name)+            backStack.pop()+        },+    )+}
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/EndTripDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/EndTripDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/EndTripDialog.ktnew file mode 100644index 0000000000..bb8a7dcb7c--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/EndTripDialog.kt@@ -0,0 +1,44 @@+package com.vayunmathur.maps.ui.dialogs++import androidx.compose.runtime.Composable+import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.ui.ConfirmDialog+import com.vayunmathur.library.ui.R as UiR+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.maps.R+import com.vayunmathur.maps.Route+import com.vayunmathur.maps.ui.stopNavigation++/**+ * End-trip confirmation, hosted as the `Route.EndTripDialog` destination+ * (`DialogPage()`) over `Route.Navigating`. Confirming stops the guidance+ * session and the foreground service, then pops the Navigating entry —+ * ConfirmDialog dismisses itself first (its confirm runs onDismiss, which+ * pops this destination, before onConfirm), so onConfirm only ends the trip.+ */+@Composable+fun EndTripDialog(backStack: NavBackStack<Route>) {+    val context = LocalContext.current+    EndTripDialogContent(+        onConfirm = {+            stopNavigation(context)+            if (backStack.backStack.lastOrNull() is Route.Navigating) backStack.pop()+        },+        onDismiss = { backStack.pop() },+    )+}++/** The stateless confirmation, rendered directly by screenshot captures and tests. */+@Composable+internal fun EndTripDialogContent(onConfirm: () -> Unit, onDismiss: () -> Unit) {+    ConfirmDialog(+        title = stringResource(R.string.nav_end_confirm_title),+        message = stringResource(R.string.nav_end_confirm_message),+        confirmLabel = stringResource(R.string.nav_action_end),+        dismissLabel = stringResource(UiR.string.cancel),+        destructive = true,+        onConfirm = onConfirm,+        onDismiss = onDismiss,+    )+}
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/GoogleConsentDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/GoogleConsentDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/GoogleConsentDialog.ktsimilarity index 62%rename from maps/src/main/java/com/vayunmathur/maps/ui/GoogleConsentDialog.ktrename to maps/src/main/java/com/vayunmathur/maps/ui/dialogs/GoogleConsentDialog.ktindex df1865a82d..4316deb0d0 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/GoogleConsentDialog.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/GoogleConsentDialog.kt@@ -1,15 +1,12 @@-package com.vayunmathur.maps.ui-import com.vayunmathur.maps.data.string+package com.vayunmathur.maps.ui.dialogs  import androidx.compose.runtime.Composable-import androidx.compose.runtime.getValue-import androidx.compose.runtime.mutableStateOf-import androidx.compose.runtime.remember-import androidx.compose.runtime.setValue import androidx.compose.ui.res.stringResource import com.vayunmathur.library.ui.ConfirmDialog import com.vayunmathur.library.util.DataStoreUtils+import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.maps.R+import com.vayunmathur.maps.Route import com.vayunmathur.maps.data.MapPreferences import com.vayunmathur.maps.platform.MapSettingsViewModel import kotlinx.coroutines.CoroutineScope@@ -17,7 +14,8 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch  /**- * First-launch Google services consent.+ * First-launch Google services consent, hosted as the+ * `Route.GoogleConsentDialog` destination (`DialogPage()`).  *  * Shown once, on the first map open: enabling turns on Google place details  * (photos, hours, phone/website, popular times) and Street View — the only two@@ -26,28 +24,42 @@ import kotlinx.coroutines.launch  * Google traffic: search, pins, routing, traffic, and transit stay fully  * offline/first-party.  *- * Either answer records [MapPreferences.KEY_GOOGLE_CONSENT_ASKED] so the- * dialog never returns; the choice stays changeable in Settings.+ * Either answer records [MapPreferences.KEY_GOOGLE_CONSENT_ASKED] through+ * [MapSettingsViewModel.setGoogleServices], so the dialog never returns; the+ * choice stays changeable in Settings. ConfirmDialog dismisses itself (its+ * confirm runs onDismiss first), so onConfirm only records the choice.  */ @Composable-fun GoogleConsentDialog(settingsViewModel: MapSettingsViewModel, onDone: () -> Unit) {-    var visible by remember { mutableStateOf(true) }-    if (!visible) return+fun GoogleConsentDialog(+    backStack: NavBackStack<Route>,+    settingsViewModel: MapSettingsViewModel,+) {+    // ConfirmDialog dismisses itself (its confirm runs onDismiss first, then+    // onConfirm), so a confirm records disable-then-enable through this+    // onDismiss — the enable write lands last, exactly as the pre-route+    // dialog behaved — while a plain dismiss records only the disable.+    GoogleConsentDialogContent(+        onConfirm = { settingsViewModel.setGoogleServices(true) },+        onDismiss = {+            settingsViewModel.setGoogleServices(false)+            backStack.pop()+        },+    )+}++/** The stateless consent prompt, rendered directly by screenshot captures and tests. */+@Composable+internal fun GoogleConsentDialogContent(+    onConfirm: () -> Unit,+    onDismiss: () -> Unit,+) {     ConfirmDialog(         title = stringResource(R.string.google_consent_title),         message = stringResource(R.string.google_consent_message),         confirmLabel = stringResource(R.string.google_consent_enable),         dismissLabel = stringResource(R.string.google_consent_disable),-        onConfirm = {-            settingsViewModel.setGoogleServices(true)-            visible = false-            onDone()-        },-        onDismiss = {-            settingsViewModel.setGoogleServices(false)-            visible = false-            onDone()-        },+        onConfirm = onConfirm,+        onDismiss = onDismiss,     ) } 
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/RenameSavedPlaceDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/RenameSavedPlaceDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/RenameSavedPlaceDialog.ktnew file mode 100644index 0000000000..ed93de398f--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/RenameSavedPlaceDialog.kt@@ -0,0 +1,35 @@+package com.vayunmathur.maps.ui.dialogs++import androidx.compose.runtime.Composable+import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.ui.R as UiR+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.maps.R+import com.vayunmathur.maps.Route+import com.vayunmathur.maps.data.SavedPlace+import com.vayunmathur.maps.platform.SavedPlacesViewModel++/**+ * Rename dialog for one saved place, hosted as the+ * `Route.RenameSavedPlaceDialog` destination (`DialogPage()`). The place+ * identity travels in the route; confirming renames through the+ * saved-places ViewModel (the list underneath is flow-driven, so no result+ * needs to travel back) and pops.+ */+@Composable+fun RenameSavedPlaceDialog(+    backStack: NavBackStack<Route>,+    viewModel: SavedPlacesViewModel,+    route: Route.RenameSavedPlaceDialog,+) {+    TextEntryDialog(+        title = stringResource(R.string.saved_rename_title),+        initial = route.name,+        confirmLabel = stringResource(UiR.string.rename),+        onDismiss = { backStack.pop() },+        onConfirm = { newName ->+            viewModel.renameSaved(SavedPlace(route.name, route.lat, route.lon), newName)+            backStack.pop()+        },+    )+}
maps/src/main/java/com/vayunmathur/maps/ui/dialogs/TextEntryDialog.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/TextEntryDialog.kt b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/TextEntryDialog.ktnew file mode 100644index 0000000000..8921322f79--- /dev/null+++ b/maps/src/main/java/com/vayunmathur/maps/ui/dialogs/TextEntryDialog.kt@@ -0,0 +1,50 @@+package com.vayunmathur.maps.ui.dialogs++import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.ui.AlertDialog+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.OutlinedTextField+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton+import com.vayunmathur.library.ui.R as UiR++/**+ * Stateless single-field text entry dialog content, shared by the+ * saved-places dialog destinations (rename / create list). Rendered+ * unconditionally by those route hosts; the text state is the dialog's own+ * in-screen sub-state, seeded from [initial].+ */+@Composable+fun TextEntryDialog(+    title: String,+    initial: String,+    confirmLabel: String,+    onDismiss: () -> Unit,+    onConfirm: (String) -> Unit,+) {+    var text by remember { mutableStateOf(initial) }+    AlertDialog(+        onDismissRequest = onDismiss,+        confirmButton = {+            Button(onClick = { onConfirm(text) }, enabled = text.isNotBlank()) {+                Text(confirmLabel)+            }+        },+        dismissButton = {+            TextButton(onClick = onDismiss) { Text(stringResource(UiR.string.cancel)) }+        },+        title = { Text(title) },+        text = {+            OutlinedTextField(+                value = text,+                onValueChange = { text = it },+                label = { Text(title) },+            )+        },+    )+}
maps/src/main/java/com/vayunmathur/maps/ui/map/MapChrome.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/ui/map/MapChrome.kt b/maps/src/main/java/com/vayunmathur/maps/ui/map/MapChrome.ktindex 341f58d1a7..0751bb1b7e 100644--- a/maps/src/main/java/com/vayunmathur/maps/ui/map/MapChrome.kt+++ b/maps/src/main/java/com/vayunmathur/maps/ui/map/MapChrome.kt@@ -37,6 +37,7 @@ fun MapSearchBar(     onOpenSearch: (query: String?) -> Unit,     onContactAddress: (String) -> Unit,     modifier: Modifier = Modifier,+    onShowContactChooser: (List<String>) -> Unit = {}, ) {     Card(shape = MaterialTheme.shapes.extraLarge, modifier = modifier.fillMaxWidth()) {         Row(@@ -53,7 +54,7 @@ fun MapSearchBar(             // Contact address shortcut (P17/P31): pick a contact's postal address, geocode it             // and open the resolved place directly — never through the search box, so no             // query prefill and no results list.-            ContactAddressButton(onAddress = onContactAddress)+            ContactAddressButton(onAddress = onContactAddress, onShowChooser = onShowContactChooser)             // Voice search (P8): a transcript opens the search sheet pre-filled.             VoiceSearchButton(onResult = { onOpenSearch(it) })         }
maps/src/screenshotTest/kotlin/com/vayunmathur/maps/ui/MetadataPreviews.kt
diff --git a/maps/src/screenshotTest/kotlin/com/vayunmathur/maps/ui/MetadataPreviews.kt b/maps/src/screenshotTest/kotlin/com/vayunmathur/maps/ui/MetadataPreviews.ktindex 0558f889ab..fda35a4da5 100644--- a/maps/src/screenshotTest/kotlin/com/vayunmathur/maps/ui/MetadataPreviews.kt+++ b/maps/src/screenshotTest/kotlin/com/vayunmathur/maps/ui/MetadataPreviews.kt@@ -6,6 +6,7 @@ import com.vayunmathur.maps.platform.SearchResult import com.vayunmathur.maps.platform.SearchUiState  import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable@@ -17,6 +18,20 @@ import com.vayunmathur.library.ui.DynamicTheme import com.vayunmathur.library.ui.MaterialTheme import com.vayunmathur.library.ui.Surface import com.vayunmathur.maps.data.SpecificFeature+import com.vayunmathur.maps.Route+import com.vayunmathur.maps.data.SavedPlace+import com.vayunmathur.library.ui.AppScaffold+import com.vayunmathur.library.ui.SettingsRow+import com.vayunmathur.library.ui.SettingsSection+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.maps.ui.dialogs.AddSavedPlaceToListDialogContent+import com.vayunmathur.maps.ui.dialogs.ContactAddressChooserDialogContent+import com.vayunmathur.maps.ui.dialogs.EndTripDialogContent+import com.vayunmathur.maps.ui.dialogs.GoogleConsentDialogContent+import com.vayunmathur.maps.ui.dialogs.TextEntryDialog+import com.vayunmathur.maps.ui.map.MapSearchBar+import androidx.compose.ui.res.stringResource+import com.vayunmathur.maps.R import com.vayunmathur.maps.platform.NavigationSessionManager import com.vayunmathur.maps.platform.PlacePanelState import com.vayunmathur.maps.domain.RouteService@@ -33,6 +48,9 @@ private const val EXPANDED = "spec:width=1280dp,height=800dp,dpi=240" /** The locality line the search preview rows show (from poi_admin on a device). */ private const val SF_LOCALITY = "San Francisco, California, United States" +/** Fixed fixture instant: 2026-01-17T12:00:00Z. */+private const val FIXED_NOW_EPOCH_MS = 1_768_651_200_000L+ /**  * Store listing images for `:maps`. See `common-conventions-preview-metadata`.  *@@ -176,10 +194,9 @@ class MetadataPreviews {                             distanceRemaining = 4070.0,                             distanceToNextManeuver = 280.0,                             fractionComplete = 0.36,-                            // The ETA strip counts down against the wall clock, so an-                            // absolute literal would render as "0 min". Offsetting from-                            // now is what keeps the strip showing a plausible trip.-                            etaEpochMs = System.currentTimeMillis() + 11 * 60_000L,+                            // ETA 11 minutes after the fixed fixture instant, so the+                            // capture is deterministic (FixtureDeterminism lint).+                            etaEpochMs = FIXED_NOW_EPOCH_MS + 11 * 60_000L,                             courseOverGround = 47f,                             distanceOffRoute = 2.5,                         )@@ -187,7 +204,7 @@ class MetadataPreviews {                     steps = driveSteps,                     autoFollow = false,                     onRecenter = {},-                    onEndTrip = {},+                                         onDismissArrival = {},                 )             }@@ -295,4 +312,162 @@ class MetadataPreviews {             )         }     }+    @PreviewTest+    @Preview(name = "6-map-page", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview6MapPage() {+        // The map page's browsing chrome over a flat surface (the Vulkan+        // basemap itself has no Layoutlib renderer): the collapsed search+        // pill that rests at the bottom of the map.+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.surfaceVariant) {+                Column(Modifier.padding(16.dp)) {+                    Spacer(Modifier.weight(1f))+                    MapSearchBar(onOpenSearch = {}, onContactAddress = {})+                }+            }+        }+    }++    @PreviewTest+    @Preview(name = "7-settings-page", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview7SettingsPage() {+        // The settings page's own rows, rendered as a literal slice (the+        // page itself is ViewModel-driven): display, navigation, places+        // and map-data sections at their shipped labels.+        DynamicTheme(darkTheme = true) {+            AppScaffold(title = stringResource(com.vayunmathur.library.ui.R.string.settings)) { padding ->+                Column(Modifier.fillMaxSize().padding(padding)) {+                    SettingsSection(title = stringResource(R.string.settings_section_display)) {+                        SettingsRow(title = stringResource(R.string.settings_theme), supportingText = stringResource(R.string.settings_theme_system), onClick = {})+                        SettingsRow(title = stringResource(R.string.settings_globe), supportingText = stringResource(R.string.settings_globe_desc), onClick = {})+                    }+                    SettingsSection(title = stringResource(R.string.nav_channel_name)) {+                        SettingsRow(title = stringResource(R.string.settings_voice_guidance), supportingText = stringResource(R.string.settings_voice_guidance_desc), onClick = {})+                    }+                    SettingsSection(title = stringResource(R.string.settings_section_places)) {+                        SettingsRow(title = stringResource(R.string.settings_google_services), supportingText = stringResource(R.string.settings_google_services_desc), onClick = {})+                        SettingsRow(title = stringResource(R.string.saved_places_title), onClick = {})+                    }+                    SettingsSection(title = stringResource(R.string.settings_section_map_data)) {+                        SettingsRow(title = stringResource(R.string.settings_map_update), onClick = {})+                        SettingsRow(title = stringResource(R.string.settings_map_auto_update), supportingText = stringResource(R.string.settings_map_auto_update_desc), onClick = {})+                    }+                }+            }+        }+    }++    @PreviewTest+    @Preview(name = "8-saved-places-page", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview8SavedPlacesPage() {+        // The real stateless saved-places content with literal places.+        DynamicTheme(darkTheme = true) {+            SavedPlacesContent(+                saved = listOf(+                    SavedPlace("Ferry Building", 37.7955, -122.3933),+                    SavedPlace("Golden Gate Park", 37.7694, -122.4862),+                ),+                lists = mapOf(+                    "Weekend" to listOf(SavedPlace("Ferry Building", 37.7955, -122.3933)),+                ),+                backStack = NavBackStack<Route>(arrayOf(Route.SavedPlacesPage)),+                onRename = {},+                onAddToList = {},+                onRemove = {},+                onCreateList = {},+                onDeleteList = {},+                onRemoveFromList = { _, _ -> },+            )+        }+    }++    @PreviewTest+    @Preview(name = "9-google-consent-dialog", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview9GoogleConsentDialog() {+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize()) {+                GoogleConsentDialogContent(onConfirm = {}, onDismiss = {})+            }+        }+    }++    @PreviewTest+    @Preview(name = "10-contact-address-chooser-dialog", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview10ContactAddressChooserDialog() {+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize()) {+                ContactAddressChooserDialogContent(+                    addresses = listOf("1 First St, San Francisco, CA", "2 Second Ave, Oakland, CA"),+                    onPick = {},+                    onDismiss = {},+                )+            }+        }+    }++    @PreviewTest+    @Preview(name = "11-end-trip-dialog", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview11EndTripDialog() {+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize()) {+                EndTripDialogContent(onConfirm = {}, onDismiss = {})+            }+        }+    }++    @PreviewTest+    @Preview(name = "12-rename-saved-place-dialog", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview12RenameSavedPlaceDialog() {+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize()) {+                TextEntryDialog(+                    title = stringResource(R.string.saved_rename_title),+                    initial = "Ferry Building",+                    confirmLabel = stringResource(com.vayunmathur.library.ui.R.string.rename),+                    onDismiss = {},+                    onConfirm = {},+                )+            }+        }+    }++    @PreviewTest+    @Preview(name = "13-create-saved-list-dialog", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview13CreateSavedListDialog() {+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize()) {+                TextEntryDialog(+                    title = stringResource(R.string.saved_lists_new),+                    initial = "",+                    confirmLabel = stringResource(com.vayunmathur.library.ui.R.string.create),+                    onDismiss = {},+                    onConfirm = {},+                )+            }+        }+    }++    @PreviewTest+    @Preview(name = "14-add-saved-place-to-list-dialog", device = PHONE, group = "phone", showSystemUi = true)+    @Composable+    fun Preview14AddSavedPlaceToListDialog() {+        DynamicTheme(darkTheme = true) {+            Surface(Modifier.fillMaxSize()) {+                AddSavedPlaceToListDialogContent(+                    lists = listOf("Weekend", "Work"),+                    onDismiss = {},+                    onPick = {},+                    onCreateAndAdd = {},+                )+            }+        }+    } }
maps/src/test/java/com/vayunmathur/maps/MapsActivityW6Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/MapsActivityW6Test.kt b/maps/src/test/java/com/vayunmathur/maps/MapsActivityW6Test.ktindex 28e298da62..82c5efa3e8 100644--- a/maps/src/test/java/com/vayunmathur/maps/MapsActivityW6Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/MapsActivityW6Test.kt@@ -1,5 +1,7 @@ package com.vayunmathur.maps +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.Manifest import android.content.Context import android.content.Intent
maps/src/test/java/com/vayunmathur/maps/car/CarSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/car/CarSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/car/CarSlice3ExtraTest.ktindex 869281ac4d..494e795093 100644--- a/maps/src/test/java/com/vayunmathur/maps/car/CarSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/car/CarSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.car++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.platform.MapsSession import com.vayunmathur.maps.platform.NavMapScreen 
maps/src/test/java/com/vayunmathur/maps/car/MapsCarNavScreenC5Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/car/MapsCarNavScreenC5Test.kt b/maps/src/test/java/com/vayunmathur/maps/car/MapsCarNavScreenC5Test.ktindex e09c867a1a..5db4529410 100644--- a/maps/src/test/java/com/vayunmathur/maps/car/MapsCarNavScreenC5Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/car/MapsCarNavScreenC5Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.car++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.NavigationProgress import com.vayunmathur.maps.platform.NavMapScreen 
maps/src/test/java/com/vayunmathur/maps/ui/ComposeSurfacesSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/ComposeSurfacesSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/ui/ComposeSurfacesSlice3ExtraTest.ktindex a635e1fdad..7e19d6be6a 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/ComposeSurfacesSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/ComposeSurfacesSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.NavigationProgress  import android.app.Application@@ -61,7 +63,7 @@ class ComposeSurfacesSlice3ExtraTest {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Navigating(progress()),                     steps = steps(), autoFollow = true,-                    onRecenter = { recentered = true }, onEndTrip = { ended = true },+                    onRecenter = { recentered = true }, onRequestEndTrip = { ended = true },                     onDismissArrival = { dismissed = true },                     postedLimit = PostedLimit(50, 31, false), destinationName = "Home",                 )@@ -82,7 +84,7 @@ class ComposeSurfacesSlice3ExtraTest {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Arrived,                     steps = steps(), autoFollow = false,-                    onRecenter = {}, onEndTrip = {}, onDismissArrival = { dismissed = true },+                    onRecenter = {}, onDismissArrival = { dismissed = true },                     destinationName = "Home",                 )             }
maps/src/test/java/com/vayunmathur/maps/ui/ContactAddressButtonResultsSlice2Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/ContactAddressButtonResultsSlice2Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/ContactAddressButtonResultsSlice2Test.ktindex c5651edf6d..9734ee6281 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/ContactAddressButtonResultsSlice2Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/ContactAddressButtonResultsSlice2Test.kt@@ -16,6 +16,11 @@ import androidx.activity.result.ActivityResultRegistryOwner import androidx.activity.result.contract.ActivityResultContract import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.runtime.CompositionLocalProvider+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import com.vayunmathur.maps.ui.dialogs.ContactAddressChooserDialogContent import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.junit4.createComposeRule import androidx.compose.ui.test.onNodeWithContentDescription@@ -95,7 +100,22 @@ class ContactAddressButtonResultsSlice2Test {         }         rule.setContent {             CompositionLocalProvider(LocalActivityResultRegistryOwner provides owner) {-                ContactAddressButton(onAddress = { picked += it })+                // The chooser is a dialog route in the app; here the test+                // hosts its stateless content directly (src/test is not a+                // route host), delivering picks the way the result+                // registry would.+                var choices by remember { mutableStateOf<List<String>>(emptyList()) }+                ContactAddressButton(+                    onAddress = { picked += it },+                    onShowChooser = { choices = it },+                )+                if (choices.isNotEmpty()) {+                    ContactAddressChooserDialogContent(+                        addresses = choices,+                        onPick = { picked += it; choices = emptyList() },+                        onDismiss = { choices = emptyList() },+                    )+                }             }         }     }
maps/src/test/java/com/vayunmathur/maps/ui/DeparturesExtraSlice2Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesExtraSlice2Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesExtraSlice2Test.ktindex 92ecf92cb4..230b09b778 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesExtraSlice2Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesExtraSlice2Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.platform.DeparturesState  import androidx.compose.ui.test.assertIsDisplayed
maps/src/test/java/com/vayunmathur/maps/ui/DeparturesRowsSlice2Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesRowsSlice2Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesRowsSlice2Test.ktindex 1d1f6e1feb..bf0bab843b 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesRowsSlice2Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesRowsSlice2Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.platform.DeparturesState  import androidx.compose.ui.test.assertIsDisplayed
maps/src/test/java/com/vayunmathur/maps/ui/DeparturesSheetSlice2Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesSheetSlice2Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesSheetSlice2Test.ktindex 68a00771b9..95804f58e8 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesSheetSlice2Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/DeparturesSheetSlice2Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.platform.DeparturesState  import androidx.compose.ui.test.assertIsDisplayed
maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentDialogSlice2Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentDialogSlice2Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentDialogSlice2Test.ktindex 0a1d3b1f44..8aec1adac6 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentDialogSlice2Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentDialogSlice2Test.kt@@ -1,5 +1,8 @@ package com.vayunmathur.maps.ui import com.vayunmathur.maps.platform.MapSettingsViewModel+import com.vayunmathur.maps.ui.dialogs.GoogleConsentDialogContent+import com.vayunmathur.maps.ui.dialogs.googleServicesEnabled+import com.vayunmathur.maps.ui.dialogs.shouldShowGoogleConsent  import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.junit4.createComposeRule@@ -51,29 +54,30 @@ class GoogleConsentDialogSlice2Test {      @Test     fun `enabling dismisses the dialog and calls back`() {-        val vm = com.vayunmathur.maps.platform.MapSettingsViewModel(-            context as android.app.Application,-        )-        var done = 0-        rule.setContent { GoogleConsentDialog(settingsViewModel = vm, onDone = { done++ }) }+        var confirmed = 0+        var dismissed = 0+        rule.setContent {+            GoogleConsentDialogContent(onConfirm = { confirmed++ }, onDismiss = { dismissed++ })+        }         rule.onNodeWithText("Enable Google services?").assertIsDisplayed()         rule.onNodeWithText("Enable").performClick()         rule.waitForIdle()-        // The choice is recorded (dialog gone) and the caller is told.-        rule.onNodeWithText("Enable Google services?").assertDoesNotExist()-        assertTrue(done >= 1, "onDone fires on confirm")+        // ConfirmDialog runs onDismiss first, then onConfirm (the host+        // records disable-then-enable, so the enable lands last).+        assertTrue(confirmed >= 1, "onConfirm fires on confirm")+        assertTrue(dismissed >= 1, "ConfirmDialog dismisses before confirming")     }      @Test     fun `dismissing dismisses the dialog and calls back`() {-        val vm = com.vayunmathur.maps.platform.MapSettingsViewModel(-            context as android.app.Application,-        )-        var done = 0-        rule.setContent { GoogleConsentDialog(settingsViewModel = vm, onDone = { done++ }) }+        var confirmed = 0+        var dismissed = 0+        rule.setContent {+            GoogleConsentDialogContent(onConfirm = { confirmed++ }, onDismiss = { dismissed++ })+        }         rule.onNodeWithText("Keep offline").performClick()         rule.waitForIdle()-        rule.onNodeWithText("Enable Google services?").assertDoesNotExist()-        assertTrue(done >= 1, "onDone fires on dismiss")+        assertTrue(dismissed >= 1, "onDismiss fires on dismiss")+        assertTrue(confirmed == 0, "onConfirm does not fire on dismiss")     } }
maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentRecordSlice2Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentRecordSlice2Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentRecordSlice2Test.ktindex 66eba55ed8..7ad0a23991 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentRecordSlice2Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/GoogleConsentRecordSlice2Test.kt@@ -3,6 +3,9 @@ package com.vayunmathur.maps.ui import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import com.vayunmathur.library.util.DataStoreUtils+import com.vayunmathur.maps.ui.dialogs.googleServicesEnabled+import com.vayunmathur.maps.ui.dialogs.recordGoogleConsent+import com.vayunmathur.maps.ui.dialogs.shouldShowGoogleConsent import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue
maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5Test.ktindex 1712866663..55962d8d4f 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.NavigationProgress  import androidx.compose.foundation.layout.Box@@ -186,7 +188,7 @@ class MapsComposeC5Test {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Navigating(progress()),                     steps = steps(), autoFollow = false,-                    onRecenter = { recentered++ }, onEndTrip = {}, onDismissArrival = {},+                    onRecenter = { recentered++ }, onDismissArrival = {},                     postedLimit = PostedLimit(kmh = 50, mph = 31, displayIsMph = false),                     destinationName = "Home",                 )@@ -207,7 +209,7 @@ class MapsComposeC5Test {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Recalculating,                     steps = steps(), autoFollow = true,-                    onRecenter = {}, onEndTrip = {}, onDismissArrival = {},+                    onRecenter = {}, onDismissArrival = {},                 )             }         }
maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5bTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5bTest.kt b/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5bTest.ktindex 35c2b49e9c..8b62831244 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5bTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/MapsComposeC5bTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.intents.RideHandoffContract import com.vayunmathur.maps.platform.TripItineraryState
maps/src/test/java/com/vayunmathur/maps/ui/MapsContentBoxC5Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/MapsContentBoxC5Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/MapsContentBoxC5Test.ktindex 24f4876969..d1143a1fea 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/MapsContentBoxC5Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/MapsContentBoxC5Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.platform.DeparturesState import com.vayunmathur.maps.platform.TripItineraryState 
maps/src/test/java/com/vayunmathur/maps/ui/NavigationOverlaySlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/NavigationOverlaySlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/ui/NavigationOverlaySlice3ExtraTest.ktindex f2bb7051c3..5446a4c1fc 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/NavigationOverlaySlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/NavigationOverlaySlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.NavigationProgress  import androidx.compose.ui.test.assertIsDisplayed@@ -47,7 +49,7 @@ class NavigationOverlaySlice3ExtraTest {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Starting,                     steps = steps(), autoFollow = true,-                    onRecenter = {}, onEndTrip = {}, onDismissArrival = {},+                    onRecenter = {}, onDismissArrival = {},                 )             }         }@@ -62,7 +64,7 @@ class NavigationOverlaySlice3ExtraTest {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Failed("Could not recalculate route"),                     steps = steps(), autoFollow = false,-                    onRecenter = {}, onEndTrip = {}, onDismissArrival = { dismissed = true },+                    onRecenter = {}, onDismissArrival = { dismissed = true },                 )             }         }@@ -76,23 +78,40 @@ class NavigationOverlaySlice3ExtraTest {     }      @Test fun endTripRequiresConfirmation() {-        var ended = false+        // The overlay only requests the EndTripDialog route now; the trip+        // itself ends in that destination, never from the ETA strip.+        var requested = false         rule.setContent {             DynamicTheme {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Navigating(progress()),                     steps = steps(), autoFollow = true,-                    onRecenter = {}, onEndTrip = { ended = true }, onDismissArrival = {},+                    onRecenter = {}, onRequestEndTrip = { requested = true }, onDismissArrival = {},                     destinationName = "Home",                 )             }         }         rule.onNodeWithText("End").assertIsDisplayed().performClick()-        // Confirmation dialog appears; ending only happens on confirm         rule.waitForIdle()-        val confirms = rule.onAllNodes(hasText("End", substring = true)).fetchSemanticsNodes()-        assertTrue(confirms.isNotEmpty())-        assertTrue(!ended, "trip must not end before confirmation")+        assertTrue(requested, "End must request the confirmation route")+    }++    @Test fun endTripDialogContentConfirmsAndDismisses() {+        var confirmed = false+        var dismissed = false+        rule.setContent {+            DynamicTheme {+                com.vayunmathur.maps.ui.dialogs.EndTripDialogContent(+                    onConfirm = { confirmed = true },+                    onDismiss = { dismissed = true },+                )+            }+        }+        rule.onNodeWithText("End this trip?").assertIsDisplayed()+        rule.onAllNodes(hasText("End", substring = true)).fetchSemanticsNodes()+        // ConfirmDialog's confirm runs onDismiss first, then onConfirm.+        rule.onNodeWithText("Cancel").performClick()+        assertTrue(dismissed && !confirmed)     }      @Test fun arrivedShowsArrivalCardAndDismisses() {@@ -102,7 +121,7 @@ class NavigationOverlaySlice3ExtraTest {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Arrived,                     steps = steps(), autoFollow = true,-                    onRecenter = {}, onEndTrip = {}, onDismissArrival = { dismissed = true },+                    onRecenter = {}, onDismissArrival = { dismissed = true },                     destinationName = "Home",                 )             }@@ -118,7 +137,7 @@ class NavigationOverlaySlice3ExtraTest {                 NavigationOverlay(                     navState = NavigationSessionManager.NavState.Idle,                     steps = steps(), autoFollow = true,-                    onRecenter = {}, onEndTrip = {}, onDismissArrival = {},+                    onRecenter = {}, onDismissArrival = {},                 )             }         }
maps/src/test/java/com/vayunmathur/maps/ui/RouteTripSearchSlice3Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/RouteTripSearchSlice3Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/RouteTripSearchSlice3Test.ktindex d462e4f61b..5688bb38c9 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/RouteTripSearchSlice3Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/RouteTripSearchSlice3Test.kt@@ -347,7 +347,7 @@ class RouteTripSearchSlice3Test {                 steps = listOf(step("Head north")),                 autoFollow = true,                 onRecenter = {},-                onEndTrip = {},+                                 onDismissArrival = {},                 onToggleNorthUp = {},             )@@ -367,7 +367,7 @@ class RouteTripSearchSlice3Test {                 ),                 autoFollow = true,                 onRecenter = {},-                onEndTrip = { ended = true },+                onRequestEndTrip = { ended = true },                 onDismissArrival = {},                 onToggleNorthUp = {},             )@@ -383,7 +383,7 @@ class RouteTripSearchSlice3Test {                 steps = emptyList(),                 autoFollow = true,                 onRecenter = {},-                onEndTrip = {},+                                 onDismissArrival = {},                 onToggleNorthUp = {},             )
maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesDialogsSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesDialogsSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesDialogsSlice3ExtraTest.ktindex 65ecaf2133..6f3d97f0f1 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesDialogsSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesDialogsSlice3ExtraTest.kt@@ -20,6 +20,10 @@ import com.vayunmathur.maps.data.SavedPlaceStore import com.vayunmathur.maps.data.SpecificFeature import com.vayunmathur.maps.platform.SavedPlacesViewModel import com.vayunmathur.maps.platform.SelectedFeatureViewModel+import androidx.compose.runtime.Composable+import com.vayunmathur.maps.ui.dialogs.AddSavedPlaceToListDialog+import com.vayunmathur.maps.ui.dialogs.CreateSavedListDialog+import com.vayunmathur.maps.ui.dialogs.RenameSavedPlaceDialog import kotlin.test.BeforeTest import kotlin.test.Test import kotlin.test.assertEquals@@ -45,6 +49,17 @@ class SavedPlacesDialogsSlice3ExtraTest {      private fun backStack() = NavBackStack<Route>(arrayOf(Route.SavedPlacesPage)) +    /** Renders whichever saved-places dialog route is on top (the DialogPage host's job in the app). */+    @Composable+    private fun SavedDialogsHost(bs: NavBackStack<Route>, vm: SavedPlacesViewModel) {+        when (val top = bs.backStack.lastOrNull()) {+            is Route.RenameSavedPlaceDialog -> RenameSavedPlaceDialog(bs, vm, top)+            is Route.CreateSavedListDialog -> CreateSavedListDialog(bs, vm)+            is Route.AddSavedPlaceToListDialog -> AddSavedPlaceToListDialog(bs, vm, top)+            else -> Unit+        }+    }+     private fun place(name: String = "Ferry Building") = SpecificFeature.GenericPlace(         name = name, phone = null, website = null, openingHours = null, position = GeoPoint(-122.4, 37.8),     )@@ -87,7 +102,13 @@ class SavedPlacesDialogsSlice3ExtraTest {         val vm = SavedPlacesViewModel(app)         vm.addSaved(place())         pumpVm(vm)-        rule.setContent { SavedPlacesPage(backStack(), vm) }+        val bs = backStack()+        rule.setContent {+            androidx.compose.foundation.layout.Column {+                SavedPlacesPage(bs, vm)+                SavedDialogsHost(bs, vm)+            }+        }         awaitNode("Ferry Building")         openRowMenu("Ferry Building")         rule.onNodeWithText("Rename").performClick()@@ -103,7 +124,13 @@ class SavedPlacesDialogsSlice3ExtraTest {         val vm = SavedPlacesViewModel(app)         vm.addSaved(place())         pumpVm(vm)-        rule.setContent { SavedPlacesPage(backStack(), vm) }+        val bs = backStack()+        rule.setContent {+            androidx.compose.foundation.layout.Column {+                SavedPlacesPage(bs, vm)+                SavedDialogsHost(bs, vm)+            }+        }         awaitNode("Ferry Building")         openRowMenu("Ferry Building")         rule.onNodeWithText("Add to list", substring = true).performClick()@@ -125,7 +152,13 @@ class SavedPlacesDialogsSlice3ExtraTest {         val vm = SavedPlacesViewModel(app)         vm.addSaved(place())         pumpVm(vm)-        rule.setContent { SavedPlacesPage(backStack(), vm) }+        val bs = backStack()+        rule.setContent {+            androidx.compose.foundation.layout.Column {+                SavedPlacesPage(bs, vm)+                SavedDialogsHost(bs, vm)+            }+        }         awaitNode("Ferry Building")         openRowMenu("Ferry Building")         rule.onNodeWithText("Remove").performClick()
maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesPageSlice3Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesPageSlice3Test.kt b/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesPageSlice3Test.ktindex 2bb3386854..cf97110b68 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesPageSlice3Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/SavedPlacesPageSlice3Test.kt@@ -13,6 +13,7 @@ import com.vayunmathur.library.util.NavBackStack import com.vayunmathur.maps.Route import com.vayunmathur.maps.data.SpecificFeature import com.vayunmathur.maps.platform.SavedPlacesViewModel+import com.vayunmathur.maps.ui.dialogs.CreateSavedListDialog import kotlin.test.BeforeTest import kotlin.test.Test import org.junit.Rule@@ -23,9 +24,10 @@ import org.junit.runner.RunWith  * the populated starred list with its remove action, and the named-lists  * section, driven by the real [SavedPlacesViewModel].  *- * The dialogs (rename / create-list / add-to-list) belong to the same file's- * lower half; the page owns their visibility state, so opening the create- * flow is asserted here while the dialog widgets themselves are library/ui.+ * The dialogs (rename / create-list / add-to-list) are dialog route+ * destinations; the page pushes them, so opening the create flow is+ * asserted here with the test hosting the pushed route's content, while+ * the dialog widgets themselves are library/ui.  */ @RunWith(AndroidJUnit4::class) class SavedPlacesPageSlice3Test {@@ -92,8 +94,14 @@ class SavedPlacesPageSlice3Test {     @Test     fun `new-list row opens the create dialog`() {         val vm = SavedPlacesViewModel(app)+        val bs = backStack()         rule.setContent {-            SavedPlacesPage(backStack(), vm)+            SavedPlacesPage(bs, vm)+            // Host the pushed dialog route the way Navigation's DialogPage+            // entry does in the app.+            if (bs.backStack.lastOrNull() is Route.CreateSavedListDialog) {+                CreateSavedListDialog(bs, vm)+            }         }         rule.onNodeWithText("Lists").assertIsDisplayed()         rule.onNodeWithText("New list").performClick()
maps/src/test/java/com/vayunmathur/maps/ui/WideHostSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/ui/WideHostSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/ui/WideHostSlice3ExtraTest.ktindex 98997c42cb..a0f3c1a910 100644--- a/maps/src/test/java/com/vayunmathur/maps/ui/WideHostSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/ui/WideHostSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.ui++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.data.ParkingSpot import com.vayunmathur.maps.data.SavedPlace import com.vayunmathur.maps.data.SpecificFeature
maps/src/test/java/com/vayunmathur/maps/util/MapsNavSensorC5Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/MapsNavSensorC5Test.kt b/maps/src/test/java/com/vayunmathur/maps/util/MapsNavSensorC5Test.ktindex 1309c6a580..08982db230 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/MapsNavSensorC5Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/MapsNavSensorC5Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.platform.NavigationSessionManager 
maps/src/test/java/com/vayunmathur/maps/util/MapsNavServiceC5Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/MapsNavServiceC5Test.kt b/maps/src/test/java/com/vayunmathur/maps/util/MapsNavServiceC5Test.ktindex f675f2991b..ece81123db 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/MapsNavServiceC5Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/MapsNavServiceC5Test.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.data.string import com.vayunmathur.maps.domain.NavigationProgress import com.vayunmathur.maps.domain.RouteService
maps/src/test/java/com/vayunmathur/maps/util/MapsTransitC5Test.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/MapsTransitC5Test.kt b/maps/src/test/java/com/vayunmathur/maps/util/MapsTransitC5Test.ktindex d2e40baae9..9d101218e2 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/MapsTransitC5Test.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/MapsTransitC5Test.kt@@ -19,6 +19,9 @@ import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner import org.robolectric.annotation.Config +/** Fixed fixture instant: 2026-01-17T12:00:00Z. */+private val FIXED_NOW: Instant = Instant.ofEpochMilli(1_768_651_200_000L)+ /**  * C5 transit branches: every [OfflineRouterTransit] entry point against a  * planted (unreadable) sidecar feed, so the per-feed walks — departure@@ -56,14 +59,14 @@ class MapsTransitC5Test {                 assertTrue(                     OfflineRouterTransit.getStopDeparturesOffline(                         ctx, 37.8, -122.4, max = 5,-                        anchor = Instant.now().minusSeconds(3_600),-                        until = Instant.now().plusSeconds(3_600),+                        anchor = FIXED_NOW.minusSeconds(3_600),+                        until = FIXED_NOW.plusSeconds(3_600),                     ).isEmpty(),                 )                 assertTrue(                     OfflineRouterTransit.getStopDeparturesOffline(                         ctx, 37.8, -122.4, max = 0,-                        until = Instant.now().plusSeconds(60),+                        until = FIXED_NOW.plusSeconds(60),                     ).isEmpty(),                 )                 // Itinerary, nearest stop, vehicles, rail and stop lines.
maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceModesSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceModesSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceModesSlice3ExtraTest.ktindex d5690f669d..ee423ffd32 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceModesSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceModesSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.platform.NavigationSessionManager import com.vayunmathur.maps.service.NavigationService
maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceSlice3ExtraTest.ktindex c3dae890c8..5e28842f39 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/NavigationServiceSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.platform.NavigationSessionManager import com.vayunmathur.maps.service.NavigationService
maps/src/test/java/com/vayunmathur/maps/util/NavigationSessionSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/NavigationSessionSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/NavigationSessionSlice3ExtraTest.ktindex f1bf4a8965..78070212c6 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/NavigationSessionSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/NavigationSessionSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.NavigationProgress import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.platform.NavigationSessionManager
maps/src/test/java/com/vayunmathur/maps/util/RecalcAndSearchSlice3ExtraTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/RecalcAndSearchSlice3ExtraTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/RecalcAndSearchSlice3ExtraTest.ktindex 5cb4b0fab1..b0e2b8a76b 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/RecalcAndSearchSlice3ExtraTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/RecalcAndSearchSlice3ExtraTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.data.SpecificFeature import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.platform.MapsSearchViewModel
maps/src/test/java/com/vayunmathur/maps/util/Slice3Pass3NavTest.kt
diff --git a/maps/src/test/java/com/vayunmathur/maps/util/Slice3Pass3NavTest.kt b/maps/src/test/java/com/vayunmathur/maps/util/Slice3Pass3NavTest.ktindex d00752467d..56b1e26dad 100644--- a/maps/src/test/java/com/vayunmathur/maps/util/Slice3Pass3NavTest.kt+++ b/maps/src/test/java/com/vayunmathur/maps/util/Slice3Pass3NavTest.kt@@ -1,4 +1,6 @@ package com.vayunmathur.maps.util++// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch. import com.vayunmathur.maps.domain.RouteService import com.vayunmathur.maps.platform.NavigationSessionManager 
metadata_data/photos/calendar/phone/4.png
diff --git a/metadata_data/photos/calendar/phone/4.png b/metadata_data/photos/calendar/phone/4.pngnew file mode 100644index 0000000000..4198531624Binary files /dev/null and b/metadata_data/photos/calendar/phone/4.png differ
metadata_data/photos/communicate/phone/1.png
diff --git a/metadata_data/photos/communicate/phone/1.png b/metadata_data/photos/communicate/phone/1.pngindex bebda4c36e..173c061d9e 100644Binary files a/metadata_data/photos/communicate/phone/1.png and b/metadata_data/photos/communicate/phone/1.png differ
metadata_data/photos/communicate/phone/10.png
diff --git a/metadata_data/photos/communicate/phone/10.png b/metadata_data/photos/communicate/phone/10.pngnew file mode 100644index 0000000000..80685cbaccBinary files /dev/null and b/metadata_data/photos/communicate/phone/10.png differ
metadata_data/photos/communicate/phone/11.png
diff --git a/metadata_data/photos/communicate/phone/11.png b/metadata_data/photos/communicate/phone/11.pngnew file mode 100644index 0000000000..4ac2139257Binary files /dev/null and b/metadata_data/photos/communicate/phone/11.png differ
metadata_data/photos/communicate/phone/12.png
diff --git a/metadata_data/photos/communicate/phone/12.png b/metadata_data/photos/communicate/phone/12.pngnew file mode 100644index 0000000000..5a49d08ff6Binary files /dev/null and b/metadata_data/photos/communicate/phone/12.png differ
metadata_data/photos/communicate/phone/2.png
diff --git a/metadata_data/photos/communicate/phone/2.png b/metadata_data/photos/communicate/phone/2.pngindex 338f4a55c1..ed5dc4999f 100644Binary files a/metadata_data/photos/communicate/phone/2.png and b/metadata_data/photos/communicate/phone/2.png differ
metadata_data/photos/communicate/phone/3.png
diff --git a/metadata_data/photos/communicate/phone/3.png b/metadata_data/photos/communicate/phone/3.pngindex 006c933258..06af451525 100644Binary files a/metadata_data/photos/communicate/phone/3.png and b/metadata_data/photos/communicate/phone/3.png differ
metadata_data/photos/communicate/phone/4.png
diff --git a/metadata_data/photos/communicate/phone/4.png b/metadata_data/photos/communicate/phone/4.pngindex 10c47bba3f..bebda4c36e 100644Binary files a/metadata_data/photos/communicate/phone/4.png and b/metadata_data/photos/communicate/phone/4.png differ
metadata_data/photos/communicate/phone/5.png
diff --git a/metadata_data/photos/communicate/phone/5.png b/metadata_data/photos/communicate/phone/5.pngindex 7001fd43dc..338f4a55c1 100644Binary files a/metadata_data/photos/communicate/phone/5.png and b/metadata_data/photos/communicate/phone/5.png differ
metadata_data/photos/communicate/phone/6.png
diff --git a/metadata_data/photos/communicate/phone/6.png b/metadata_data/photos/communicate/phone/6.pngindex d2daf65007..006c933258 100644Binary files a/metadata_data/photos/communicate/phone/6.png and b/metadata_data/photos/communicate/phone/6.png differ
metadata_data/photos/communicate/phone/7.png
diff --git a/metadata_data/photos/communicate/phone/7.png b/metadata_data/photos/communicate/phone/7.pngindex 80685cbacc..10c47bba3f 100644Binary files a/metadata_data/photos/communicate/phone/7.png and b/metadata_data/photos/communicate/phone/7.png differ
metadata_data/photos/communicate/phone/8.png
diff --git a/metadata_data/photos/communicate/phone/8.png b/metadata_data/photos/communicate/phone/8.pngindex 4ac2139257..7001fd43dc 100644Binary files a/metadata_data/photos/communicate/phone/8.png and b/metadata_data/photos/communicate/phone/8.png differ
metadata_data/photos/communicate/phone/9.png
diff --git a/metadata_data/photos/communicate/phone/9.png b/metadata_data/photos/communicate/phone/9.pngnew file mode 100644index 0000000000..d2daf65007Binary files /dev/null and b/metadata_data/photos/communicate/phone/9.png differ
metadata_data/photos/contacts-wear/wear/1.png
diff --git a/metadata_data/photos/contacts-wear/wear/1.png b/metadata_data/photos/contacts-wear/wear/1.pngindex 1d936a084e..ec6a6f6554 100644Binary files a/metadata_data/photos/contacts-wear/wear/1.png and b/metadata_data/photos/contacts-wear/wear/1.png differ
metadata_data/photos/contacts-wear/wear/2.png
diff --git a/metadata_data/photos/contacts-wear/wear/2.png b/metadata_data/photos/contacts-wear/wear/2.pngindex c5a5766194..766bb827a6 100644Binary files a/metadata_data/photos/contacts-wear/wear/2.png and b/metadata_data/photos/contacts-wear/wear/2.png differ
metadata_data/photos/contacts/phone/4.png
diff --git a/metadata_data/photos/contacts/phone/4.png b/metadata_data/photos/contacts/phone/4.pngnew file mode 100644index 0000000000..8b3c1a8978Binary files /dev/null and b/metadata_data/photos/contacts/phone/4.png differ
metadata_data/photos/contacts/phone/5.png
diff --git a/metadata_data/photos/contacts/phone/5.png b/metadata_data/photos/contacts/phone/5.pngnew file mode 100644index 0000000000..b2f7c7cca0Binary files /dev/null and b/metadata_data/photos/contacts/phone/5.png differ
metadata_data/photos/contacts/phone/6.png
diff --git a/metadata_data/photos/contacts/phone/6.png b/metadata_data/photos/contacts/phone/6.pngnew file mode 100644index 0000000000..2faa46ebc4Binary files /dev/null and b/metadata_data/photos/contacts/phone/6.png differ
metadata_data/photos/flashcards/phone/4.png
diff --git a/metadata_data/photos/flashcards/phone/4.png b/metadata_data/photos/flashcards/phone/4.pngindex abc75e9993..0c85f94c3f 100644Binary files a/metadata_data/photos/flashcards/phone/4.png and b/metadata_data/photos/flashcards/phone/4.png differ
metadata_data/photos/games-voxels/phone/9.png
diff --git a/metadata_data/photos/games-voxels/phone/9.png b/metadata_data/photos/games-voxels/phone/9.pngnew file mode 100644index 0000000000..d4cdcb3992Binary files /dev/null and b/metadata_data/photos/games-voxels/phone/9.png differ
metadata_data/photos/maps/phone/1.png
diff --git a/metadata_data/photos/maps/phone/1.png b/metadata_data/photos/maps/phone/1.pngindex 71dab99caf..7280a3746f 100644Binary files a/metadata_data/photos/maps/phone/1.png and b/metadata_data/photos/maps/phone/1.png differ
metadata_data/photos/maps/phone/10.png
diff --git a/metadata_data/photos/maps/phone/10.png b/metadata_data/photos/maps/phone/10.pngnew file mode 100644index 0000000000..f80caeff21Binary files /dev/null and b/metadata_data/photos/maps/phone/10.png differ
metadata_data/photos/maps/phone/11.png
diff --git a/metadata_data/photos/maps/phone/11.png b/metadata_data/photos/maps/phone/11.pngnew file mode 100644index 0000000000..f5b9b4dad0Binary files /dev/null and b/metadata_data/photos/maps/phone/11.png differ
metadata_data/photos/maps/phone/12.png
diff --git a/metadata_data/photos/maps/phone/12.png b/metadata_data/photos/maps/phone/12.pngnew file mode 100644index 0000000000..46648e8d6cBinary files /dev/null and b/metadata_data/photos/maps/phone/12.png differ
metadata_data/photos/maps/phone/13.png
diff --git a/metadata_data/photos/maps/phone/13.png b/metadata_data/photos/maps/phone/13.pngnew file mode 100644index 0000000000..9137778c50Binary files /dev/null and b/metadata_data/photos/maps/phone/13.png differ
metadata_data/photos/maps/phone/14.png
diff --git a/metadata_data/photos/maps/phone/14.png b/metadata_data/photos/maps/phone/14.pngnew file mode 100644index 0000000000..15165ed539Binary files /dev/null and b/metadata_data/photos/maps/phone/14.png differ
metadata_data/photos/maps/phone/2.png
diff --git a/metadata_data/photos/maps/phone/2.png b/metadata_data/photos/maps/phone/2.pngindex 973895856e..217897698b 100644Binary files a/metadata_data/photos/maps/phone/2.png and b/metadata_data/photos/maps/phone/2.png differ
metadata_data/photos/maps/phone/3.png
diff --git a/metadata_data/photos/maps/phone/3.png b/metadata_data/photos/maps/phone/3.pngindex a2b7aa8d30..33587e8b47 100644Binary files a/metadata_data/photos/maps/phone/3.png and b/metadata_data/photos/maps/phone/3.png differ
metadata_data/photos/maps/phone/4.png
diff --git a/metadata_data/photos/maps/phone/4.png b/metadata_data/photos/maps/phone/4.pngindex e24e17c91b..ecbf89c67d 100644Binary files a/metadata_data/photos/maps/phone/4.png and b/metadata_data/photos/maps/phone/4.png differ
metadata_data/photos/maps/phone/5.png
diff --git a/metadata_data/photos/maps/phone/5.png b/metadata_data/photos/maps/phone/5.pngindex f5b9b4dad0..643d3532f7 100644Binary files a/metadata_data/photos/maps/phone/5.png and b/metadata_data/photos/maps/phone/5.png differ
metadata_data/photos/maps/phone/6.png
diff --git a/metadata_data/photos/maps/phone/6.png b/metadata_data/photos/maps/phone/6.pngnew file mode 100644index 0000000000..71dab99cafBinary files /dev/null and b/metadata_data/photos/maps/phone/6.png differ
metadata_data/photos/maps/phone/7.png
diff --git a/metadata_data/photos/maps/phone/7.png b/metadata_data/photos/maps/phone/7.pngnew file mode 100644index 0000000000..973895856eBinary files /dev/null and b/metadata_data/photos/maps/phone/7.png differ
metadata_data/photos/maps/phone/8.png
diff --git a/metadata_data/photos/maps/phone/8.png b/metadata_data/photos/maps/phone/8.pngnew file mode 100644index 0000000000..d5a4af28ccBinary files /dev/null and b/metadata_data/photos/maps/phone/8.png differ
metadata_data/photos/maps/phone/9.png
diff --git a/metadata_data/photos/maps/phone/9.png b/metadata_data/photos/maps/phone/9.pngnew file mode 100644index 0000000000..e24e17c91bBinary files /dev/null and b/metadata_data/photos/maps/phone/9.png differ
metadata_data/photos/music/phone/5.png
diff --git a/metadata_data/photos/music/phone/5.png b/metadata_data/photos/music/phone/5.pngindex 48095f073a..dc43bf7e4e 100644Binary files a/metadata_data/photos/music/phone/5.png and b/metadata_data/photos/music/phone/5.png differ
metadata_data/photos/notes/phone/5.png
diff --git a/metadata_data/photos/notes/phone/5.png b/metadata_data/photos/notes/phone/5.pngnew file mode 100644index 0000000000..992cd4cd59Binary files /dev/null and b/metadata_data/photos/notes/phone/5.png differ
metadata_data/photos/notes/phone/6.png
diff --git a/metadata_data/photos/notes/phone/6.png b/metadata_data/photos/notes/phone/6.pngnew file mode 100644index 0000000000..5d0d29694aBinary files /dev/null and b/metadata_data/photos/notes/phone/6.png differ