CSE-110-Spring-2022 / zooseeker-cse-110-team-48

zooseeker-cse-110-team-48 created by GitHub Classroom
0 stars 0 forks source link

Added search by tags, removed databasing error, refactored main activity #65

Closed MikklJ closed 2 years ago

MikklJ commented 2 years ago

Oh boy, I added a lot today: Search by tags:

I added functionality to the DataFileReader class to simplify loading graph objects into activities. I also refactored main to be more simple, using that class.

Notably, I removed databasing by ViewModel in MainActivity (although LocationsListActivity still uses ViewModel for its list). The rationale is that MainActivity does not need to display db contents, so it should not call the database view model. I insert items directly using the DAO in the listener.

Lastly, I made it so that LocationsListActivity calls a gate-finder method to set starting vertex for routing. This is to future proof, in case we need to route using user location or custom starting location.

I attached appropriate documentation in the new classes. If anyone needs info on how the ArrayAdapter works: