Created by: f3ndot
Agreements
-
I have reviewed and accepted the guidelines for contributing to this project. -
I have reviewed and closely followed the Style Guide for this Android app.
Overview
This PR fixes the app crashing on boot on fresh installs & newly booted phones.
Pull request #798, solving #794 (closed), fails to account for fresh installs & newly booted phones where the service is not instantiated/running by the time the menu is created for the first time and a NPE occurs.
If the service is null, simply choose "false" since without a service there is no way tracking is happening.
Added onPrepareOptionsMenu
implementation that will redraw the checkboxes depending on the latest truth every time the menu is open. Not sure if this is unnecessary!
Classification
-
Bugfix (non-breaking change which fixes an existing issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to not work as expected)
References
If your pull request is related to or solves any existing Issues, please link them here.
Resolves an oversight in #798 which fixed #794 (closed).