Repository navigation
v0.2.2: fixes from a bug hunt before the first real drive
A pass through the whole app looking for crashes like v0.2.1's before the first drive in a real car. Each fix below was checked on the Desktop Head Unit or in a test.
Fixed
- Asking for a destination in the car no longer closes the app. A navigation request from Android Auto ("navigate to …", or an address tapped in a message) crashed the car app, because Ferrostar's link parser throws on every
geo:link. Overworld now reads the link itself, by place name or coordinates, and follows requests that arrive while a trip is running (they used to be ignored). - Ending a trip the moment it starts no longer crashes the app. Android kills an app whose location service stops before it has fully started; the stop now waits for it.
- Voice prompts in the car keep working after you close the phone app. Closing it shut down the voice engine the car shares.
- The last trip's traffic lights and incidents clear off the map when it ends, and its live traffic stops being re-fetched from TomTom every 2½ minutes in the background.
- End trip always ends. A GPS update landing at the same moment could bring the trip back.
- A real trip after a test drive can't be driven by the simulator. Stopping a test drive from the notification left the simulator on.
- Guards for the real car's screen: a screen surface with no size, or a free area reported past the screen's edge, is handled instead of closing the app. Roundabout exit number 0, which Android Auto rejects, counts as unknown.
- Route errors say when there's no drivable road to a place, instead of blaming the connection.
Added
- Tests that run on a phone or emulator: real Delhi and Chandigarh routes pushed through Android Auto step by step (64 of their 65 roundabout steps would have closed v0.2.0), navigation links in every form, trips stopped as they start, and the car screen.
- Debug commands: drive to a place by name (
--es query), a real trip on GPS (--ez test false), andDEBUG_STATEto log what the app holds.
No download is attached, as before: the author's builds carry personal copies of the game fonts and a traffic key.