[x] I ran ./gradlew test connectedAndroidTest detekt
[x] I rebased off of upstream/master
[ ] At least 1 approving review - @dellisd, @GustavoSanMartin
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.
Checklist
./gradlew test connectedAndroidTest detekt
upstream/master
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 aDiffUtil.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.