leedsjb / aviation-preflight-manager

Final Project Android App for INFO 448 - Android App Development - Fall 2017
3 stars 0 forks source link

Bug: Content Classes Dependency on MainActivity Instance Field #29

Open leedsjb opened 6 years ago

leedsjb commented 6 years ago

The Content classes depend on the mDatabaseRef for access to Firebase. If MainActivity is garbage collected (as in the case of app multi-tasking) the instance field is lost and activities that depend on a Content Class will crash. Need to refactor.

ishansaksena commented 6 years ago

Put it into it's own singleton maybe?