Fix Leaked MainActivity context and unusable ActivitiesView
With the recent fix for hiding the toggling Fab visibility, ActivitiesView will be unusable in the future. Rather than passing MainActivity, we rather pass a nullable function to ActivitiesView. @n8fr8