summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/eleven/MusicPlaybackService.java
Commit message (Collapse)AuthorAgeFilesLines
* Eleven: shake to play next song, only available while music is playing.stable/cm-12.0-YNG1IMikalacki Sava2015-02-231-0/+82
| | | | | | | | Allows user to shake his device to switch to next song. This feature is available through settings and is invoked only while music is playing. Change-Id: Ifb0866565d49443af7f3ac679e80601660506515
* Eleven: Show error message for corrupt tracks (additional codepaths)linus_lee2014-12-271-17/+30
| | | | | | | | | | Add showing error message for code paths where the media player fails gracefully Unfortunately adding the logic to remove the bad track is not trivial because the removeTracks logic automatically does other things to try to go to the next track. For now I will leave the logic so that it goes on to the next track and make a note on the music service rewrite notes to cover this scenario as well. Change-Id: Ib7ae5ce7819b15cdb3ada4995bc0734ab2d9b0a2
* Eleven: Make sure we have vibrant colors for all default colorslinus_lee2014-12-201-33/+14
| | | | Change-Id: I4be163e75fc35d3b139439c504d769d17d980ace
* Eleven: Add missing metadata keys for Avrcp.solk22014-12-191-0/+32
| | | | Change-Id: I7201838cf65b6b1edcf2aee0284e31bdafaf42ca
* Improve notification UX.Danny Baumann2014-12-191-32/+63
| | | | | | | | | | | | - Add a proper notification icon (courtesy of Joey Rizzoli) - Use separate notification modes to allow the user to dismiss the notification when music isn't playing. - Always show notification regardless whether an activity is in foreground to ensure the notification doesn't pop up out of the blue when ending playback inside the app and leaving it afterwards. - Keep notification timestamp constant when updating it Change-Id: I2fa9a56ff31ab2874d6d96786e6b80695397702b
* Eleven: Remove tracks that give problems from the queue and warnlinus_lee2014-12-161-5/+40
| | | | | | | Instead of playing the tracks over and over, remove it from the queue Also pop up a warning if the music player is active Change-Id: I1d4e5a049b69de381f1a7f86ce2b837449bc378f
* Merge "Eleven: Fix crash when launching a song from file manager" into cm-12.0Rajesh Yengisetty2014-12-131-85/+87
|\
| * Eleven: Fix crash when launching a song from file managerlinus_lee2014-12-111-85/+87
| | | | | | | | | | | | | | There are some asycnhronous issues with interacting the service This should protect it a bit better and fixes the crash for me Change-Id: Ib50be1ca50badb83e8c206e01362a3971d050c1f
* | Update Notification background colorAndrew Neal2014-12-121-5/+27
| | | | | | | | | | | | | | | | | | This change uses Palette to update Apollo's Notification background color based on the current artwork. It also removes the timestamp from the Notification. Change-Id: I6a292839c223bf9d165e9c90724194eae6ca343c
* | ELeven: Show notifications only when outside music app and have a linger timerlinus_lee2014-12-121-16/+38
|/ | | | | | | If you played music recently and leave the app it'll still show the notification now for up to 5 minutes Change-Id: I530c548bd4e3b8cf458341b068d78b54f1528b2c
* Eleven: Fix exception when leaving Eleven with nothing in the queuelinus_lee2014-12-111-6/+9
| | | | | | | | It is possible for things to post to a handler even after the service has been destroyed Fix is to shutdown the handlerthread in the onDestroy Also set the subtitle text to alpha of 0 to not show on first launch Change-Id: I76b5f4c4bc8a114660ced042ab02089bf279accb
* Use L's new notification and media session API.Danny Baumann2014-12-101-84/+114
| | | | Change-Id: Ic9e7facdfa7213439b168a915ac9f2e8afc0a252
* Update Eleven headers and namespace for open sourcelinus_lee2014-12-091-0/+3459
Change-Id: I82caf2ebf991998e67f546ff2ac7eaf2b30dc6be