LocationItem: group departures by line (#1295)
* group departures by line if more than one line depart from given stop * code cleanup * preselect line with nextDeparture * add horizontal divider to improve legibility * change LineFilterChip styling * sort by lineType, then by lineName, animateScrollIntoView * Show departure in minutes on single tap also: - replace `remember(time)` with `key(time)` where applicable to keep "in ... minutes" up to date - only animate lineFilterChips into view once per card composition - show old list for up to two lines - disable departure list `onLongPress` - ditch `detectDragGestures` since it does not do anything anyway... somehow scrolling the departure list will also scroll the search bar. * set containerColor to secondary in lineFilterChip to improve legibility for white-ish primary colors * More color rigamarole * OCD code tweaks * Don't use extension functions * Split LocationItem into multiple subcomponents * Adjust line colors * Always use filter chips view for departures * Limit departures to 8 per line, make list not scrollable * Adjust spacing * Add transition * Improve line sorting * Fix line chip spacing * detectTabGestures -> combinedClickable --------- Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
This commit is contained in:
@@ -820,4 +820,5 @@
|
||||
</plurals>
|
||||
<string name="preference_contacts_call_on_tap">Zum Anruf Tippen</string>
|
||||
<string name="preference_contacts_call_on_tap_summary">Beim Tippen auf eine Telefonnummer diese direkt Anrufen</string>
|
||||
<string name="departure_time_departed">abgefahren</string>
|
||||
</resources>
|
||||
@@ -1024,4 +1024,5 @@
|
||||
<item quantity="one">in one minute</item>
|
||||
<item quantity="other">in %1$d minutes</item>
|
||||
</plurals>
|
||||
<string name="departure_time_departed">departed</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user