Merge branch 'release/0.6' into develop
Updated roadmap
Fixed reloading of ALL tabs (i.e. current fragments) onContentChanged()
Implemented basic version of a service that runs daily, checking for any releases whose release date is "today" in the local time zone. Creates a notification for each release.
Added proper error handling to ReleasedTodayService and an individual notification (not the one that is displayed for recently added releases) that shows the nusic icon.
If only a single release is published, the notification shows details about it. If more than one is published only the amount put into notification.
- MainActivity can receive intents that contain the tab to display
- Adopted the usage of any "extra bundles" to the best practices: public String constant ("EXTRA_") that starts in "nusic.intent."
The notification service is not scheduled on each start of the main
activity anymore. It's now scheduled only on the first launch of the
application and after each update (to make sure it definitely is
scheduled at all).
When scheduling the notification service, and the time it's schedule
(e.g. 12:00/noon) is in the past, it's now scheduled for the next day,
same time.
Notification service reschedules itself
Finally using different request IDs for the different alarms
Implemented preferences for enabling new releases notifications and picking time of notification
Fix: Made ReleaseTodaySchedulerReceiver static so it can be instantiated when called by Android
In released today notification: Nusic icon is only set as icon (not as large icon) in order not to show the icon twice in each notification (large icon on the left and an additional small icon on the right)
Implemented preference for enabling new releases notifications
Fix: Released Today service is now checks on startup if it was disabled in preferences. If so, stops the schedule.
Merge branch 'feature/NotificationReleasedToday' into develop
Implemented first draft for cover art:
- Cover art is downloaded after a release is found on musicbrainz via
coverartarchive and stored in internal storage.
- For a start cover art is loaded synchronously, as a pragmatic proof of
concept
ReleaseListAdapter: Using a threadlocal dateformat in order to increase
performance/efficiency
Improved new releases notification for android < 4.1
Switched back to use "exact" repeating when scheduling the released today service, because it didn't seem to work on android 2.
Android 4 is using inexact repeating implicitly anyway