Ask for permissions on first run, show longest patterns first
Summary:
- Show patterns with more stops first in LinesDetailFragment
- Set compatibility of Java
- Manage permissions on first run, ask for notification
Test Plan:
- use old phone with Android <= 12: no nuclear implosions (notifications work)
- use new phone with Android > 12 and completely ignore the "Give permissions": no nuclear implosions (notifications do not work)
- use new phone with Android > 12 and manually run the Introduction (from menu) and give that permission: no nuclear implosions (notifications work)
Reviewers: valerio.bozzolan
Reviewed By: valerio.bozzolan
Subscribers: valerio.bozzolan, Libre BusTO
Tags: Libre BusTO
Differential Revision: https://gitpull.it/D147