Llamabagel / transpo-android

Route 613 Android app (re-write)
MIT License
1 stars 2 forks source link

Feature/trips/refresh #49

Closed dellisd closed 5 years ago

dellisd commented 5 years ago

Checklist

Issues

Closes #37

Summary

TripsAdapter is now an implementation of ListAdapter which can automatically diff items that are submitted to it. The TripAdapterItem class has a DiffUtil.ItemCallback attached to its companion object for this.

Pull to refresh now works on the Stop fragment and results are updated via the diff automatically.

ListDiffResult is not needed for this thanks to the ListAdapter, however it will be needed for a MapAdapter later on so I figured I'd just include it anyway.

dellisd commented 5 years ago

I don't think it's worth trying to roll back the work just to change the message at this point...

dellisd commented 5 years ago

A pre-commit hook of some kind? not sure.