Show stop from arrivals and many other improvements
Summary:
Set patternShown only when it is actually shown
Open the stop in the Line screen if showing from a stop (solves T1393)
Fix STAR lines indicated differently in the MaTO Data
Use a different layout manager for the favorites, show ST1 instead of STAR 1 as the name
Filter lines also by description and not only name
Fix layout to have a better display of lines
Fix displaying name of the line in LineDetails screen
Use button to look for the bus instead of selecting the pattern when open
Move code to try to understand how to switch from bus to vehicle and viceversa
Show context menu when clicking on line in arrivals (fix T1395)
Show stop in the map from the arrivals (fix T1110)
Ignore gtt:F (Rail) service (GTT does not operate rail anymore, luckily), resolve T1400
Test Plan:
Open map. Open a bus stop. See timetables. Click back. No crashes.
Type bus stop "40". Click the new icon to open the map. Back. Click again the new icon to see the map. Back. No crashes.
Open lines. Select 4N. Open a bus stop. Open its timetable. It works. Click the new icon to see the map. It works. Back. It works. Back again. It works (bus line). Back again. Lines. Click back 10000 times. It works. App closes.
Open the map. Set map in background. Reopen. It works.
Reviewers: valerio.bozzolan
Reviewed By: valerio.bozzolan
Subscribers: valerio.bozzolan, Libre BusTO
Project Tags: Libre BusTO
Maniphest Tasks: T1395, T1110, T1400
Differential Revision: https://gitpull.it/D222