Open leedsjb opened 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.
mDatabaseRef
Put it into it's own singleton maybe?
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.