andybotting / tramhunter

Tram Hunter is an Android client for Yarra Trams TramTracker web service
http://tramhunter.andybotting.com
22 stars 8 forks source link

New feature: Enter vehicle number #23

Closed rockgecko-development closed 7 years ago

rockgecko-development commented 7 years ago

New dialog to enter a vehicle number, and go to the TramRunActivity. Reused the search button on the home screen for now (can still use the search button in action bar for other searches). Changed the dialog import to use android.support.v7.app.AlertDialog, so updated the About dialog style to match. Changed TramRunActivity to prepend tram class in title bar, and navigate to StopDetailsActivity on stop click.

rockgecko-development commented 7 years ago

Also added tram class E2 to UIUtils. This would need the following update script:

WITH RECURSIVE
  cnt(x) AS (VALUES(6051) UNION ALL SELECT x+1 FROM cnt WHERE x<6070)
INSERT INTO trams (class, number) SELECT 'E2', x FROM cnt;
andybotting commented 7 years ago

I've built a new DB and included E2 class trams now. Thanks