Commit f5c7df1
In stop + route focus, onArrivalsLoaded re-emits the selected route's
ShowRoute directive on every arrivals load with frameRoute derived only from
preserveViewport. On an ordinary poll preserveViewport is false, so frameRoute
was true — routing through RouteMapController.reframe -> host.frameRoute() and
snapping the camera back to the whole route's extent, discarding whatever the
rider had panned/zoomed to.
Frame the selected route only when the load is the initial (restore/deep-link)
focus establishment. On an ordinary poll refresh the ShowRoute re-emission now
carries frameRoute=false, so reframe() is a no-op (direction unchanged, no
focusTripId) and the camera stays put. The initial route selection still frames
via selectStopRoute's default frameRoute=true.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 2049fdb commit f5c7df1
2 files changed
Lines changed: 31 additions & 1 deletion
File tree
- onebusaway-android/src
- main/java/org/onebusaway/android/ui/home
- test/java/org/onebusaway/android/ui/home
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
300 | 304 | | |
301 | 305 | | |
302 | 306 | | |
| |||
323 | 327 | | |
324 | 328 | | |
325 | 329 | | |
326 | | - | |
| 330 | + | |
327 | 331 | | |
328 | 332 | | |
329 | 333 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
294 | 320 | | |
295 | 321 | | |
296 | 322 | | |
| |||
0 commit comments