Fix offline functionality
Expected Behavior
When opened on a device without a network connection, the app should pull cached schedule data from the Realm DB, re-adjust Open/Closed status, and display info. Basically it should just work as it does normally, except with potentially out-of-date schedules.
Actual Behavior
It tells the user that they aren't connected, and shows the status spinner forever.
Steps to Reproduce the Behavior
- Put your phone on airplane mode.
- Open the app.
Tips
- Investigate this function call https://git.gmu.edu/srct/whats-open-android/blob/master/app/src/main/java/srct/whatsopen/presenters/MainPresenter.java#L70
- Add unit tests for
updateOpenStatus()