Make new fragment for lines, use new MaTO API

Authored by fabio.mazza on Apr 19 2022, 19:20.
Referenced Files
Unknown Object (File)
Mon, Jul 22, 07:51
Unknown Object (File)
Sun, Jul 21, 14:09
Unknown Object (File)
Wed, Jul 17, 18:59
Unknown Object (File)
Wed, Jul 17, 18:39
Unknown Object (File)
Wed, Jul 17, 16:44
Unknown Object (File)
Mon, Jul 15, 21:28
Unknown Object (File)
Mon, Jul 15, 21:28
Unknown Object (File)
Mon, Jul 15, 21:27



Use new Mato API for nearby stops

Change a bit the nearby stops logic

Work on getting feeds

Download agencies on update

Download routes from MaTO

Stop trying to download old lines

Make table for patterns, start with downloading polylines and stops

Use low priority channel for the database notifications

Add code for patterns

Save patterns with stops in the DB

Add Migration and tests

Set limits for updates

Add database schemas

Test Plan

check it builds, download on the phone and look at the logcat to see that there aren't any errors

Diff Detail

R4 Libre BusTO
Lint Not Applicable
Tests Not Applicable

Event Timeline

Restricted Application added a reviewer: valerio.bozzolan. · View Herald Transcript
Restricted Application added subscribers: Libre BusTO , valerio.bozzolan. · View Herald Transcript
  • Disable old test
  • Make new fragment
  • Experiment with LiveData and coroutines
  • Use LiveData
  • Show the lines nicely
  • Make stop with default gtfsID in constructor
  • Fix error and show finally the stops for the lines
  • Better parsing of Capitalized string into noncapitalized one
  • Use different layout for line shown
  • Reuse adapter, fix strings
  • Go back to the same fragment, finish up with strings
fabio.mazza retitled this revision from Database overhaul, using Room and MaTO for the data source to Make new fragment for lines, use new MaTO API.Apr 29 2022, 20:22

That's awesome!

And it works.




This revision is now accepted and ready to land.Apr 30 2022, 01:29