summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Display the song duration in the queue and info viewsLaurentiu Nicola2014-07-0510-12/+98
| | | | Change-Id: Ia76556d55e150142a3c1155126fb41ac12323c43
* apollo: update media cursor according to passed uriJorge Ruesga2014-06-281-15/+30
| | | | | | | | | | Check whether an external app is passing a MediaStore.File or MediaStore.Audio.Media uri and update the cursor according to that uri. JIRA: CYAN-4437 Issue: https://jira.cyanogenmod.org/browse/CYAN-4437 Change-Id: Ib378be6c2906bf35a69a34a95a81d1f3f77f9cce Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Apollo: fix npe when there is no data in the errorelement.Shareef Ali2014-06-241-5/+17
| | | | | | PS5: fix a regression which causes a crash elsewhere. Change-Id: Ib1464e8ca0e1f61533ce0b0cd172accc21c21ce0 Jira: CYAN-2839
* Apollo: Avoid crash when attempting to load many itemsEthan Chen2014-03-271-2/+8
| | | | | | | | * Thread pool executor will reject additional tasks when it has exhausted it's queue space causing Apollo to crash. * Load default artwork if executor is too busy. Change-Id: Ie25182ede0cfbd0ca8595dbb1f8c024a13a09d93
* Apollo: Use correct preference keys for artwork downloadEthan Chen2014-03-271-5/+0
| | | | | | | * These settings were not being respected because the preference key was wrong. Change-Id: I2f6733b6de206a76ce1f6899beced36922653b05
* Handle album and artist view intentsmyfreeweb2014-03-142-11/+61
| | | | | | | | | | Starting playback of an album (or all songs by artist) is very useful. My current use case is a music library smartwatch app, like Peapod for Pebble 1.0 and iOS. Relevant SO question: http://stackoverflow.com/q/15571153/239140 Change-Id: Id6026176436be3d207c7fbf150044adfc14258e2
* Fix headset button double-click handling with screen off.Danny Baumann2014-02-282-36/+70
| | | | | | | Handler only counts awake time, so we need to hold a wake lock while having messages scheduled to it. Change-Id: I01fae025830734758a704afaac452b61db3a13f4
* Merge "Apollo: Added triple click prev track" into cm-11.0Danny Baumann2014-02-242-11/+61
|\
| * Apollo: Added triple click prev trackShuhao Wu2014-02-112-11/+61
| | | | | | | | | | | | | | Added a triple click for the headset button so that Apollo goes back to the previous track. Change-Id: I46b14136ec471673a4a139dc2f4b50ecacaccc1e
* | Apollo: Fix repeating of a song after the resume of playback servicekuci2014-02-111-0/+2
|/ | | | | | | | This should fix problem with repeating of a song after the resume of playback service, when repeat mode was not applied to the current song, but to a next song instead. Change-Id: I765d69874aa082e1e48567a4e50a3d329be84f99
* fix issues deleting albumsAndrew Sutherland2014-02-081-1/+1
| | | | | | | Recents and Album frags shared same group id causing NPE if trying to delete album (from Album frag) not in recents Change-Id: I633591262e7147c1ed3a6789418d2e0c2c1f1003
* Apollo: Add option for sorting by filename into 'Sort by' menukuci2014-01-023-0/+25
| | | | Change-Id: Ia9688d2022ba62df41829eca1e20abd3e4b6c093
* Apollo: handle possible exceptionsEthan Chen2013-12-161-1/+8
| | | | Change-Id: Ie0f2496ccb3ec4d849fc9751ac682fe3b916a6bb
* Apollo: Lock when re-opening cursorEthan Chen2013-11-271-6/+10
| | | | | | | * In certain situations it may be possible to query the cursor in a state where it has been closed and not yet re-opened. Change-Id: I60b19624887bc8ef27b928105a07072e3e11f80b
* Fix seek bar lags for AudioPlayerActivityAChep2013-11-211-2/+19
| | | | Change-Id: I714855aa1a170f6d00aa3ebb1a653b81e901fe8d
* Apollo: artist name will now be displayed together with the album name for ↵Piotr Myszka2013-11-215-26/+63
| | | | | | | | each song on a playlist screen PS2: Add missing comma in parameter of ProfileSongAdapter() Change-Id: I49c9a5713284baff7365e5976034ac4682d0714a
* Apollo: update Last.fm apiKyrylo Mikos2013-11-135-81/+22
| | | | | | | | | | | | | Update ImageSize class. Artist.getImages is deprecated now. Remove it and use Artist.getInfo to load images for Artist. Use default album size to EXTRALARGE. Add a function to check album size and fallback to smaller one if does not exists, Change-Id: I40e3d5c60397a620057619dca1a7ea3e5839c7de
* Apollo: Fix media position transmission via RemoteControlClientrovo892013-10-171-1/+6
| | | | | | | | | | | | | Using the legacy call setPlaybackState(int) resets the position to "unknown", therefore the new API has to be used for PLAYSTATE_CHANGED as well. It's also necessary to update the media position when the track has changed as it doesn't trigger PLAYSTATE_CHANGED or POSITION_CHANGED. The drift check would eventually correct this, but for some seconds the position would be wrong. Change-Id: I39c85c7092c36d0bbc4817de7e72654524d8336c
* Apollo: Fix Play/Pause button on normal notification layoutMelvyn Ng2013-09-161-1/+1
| | | | Change-Id: I95d8ef63d30c5f7604a089bdcb70dc20d699fe05
* 'Remove from playlist' added to the context menuPiotr Myszka2013-09-042-2/+30
| | | | Change-Id: Id19cf0195495191d21ade048ef7dedfcb8565ba4
* Apollo: respect shuffle settings when removing track.Kiril Mikos2013-09-021-1/+3
| | | | Change-Id: I28239da3738ccb0d7675294971266e44fa2a3c5e
* Apollo: Prevent FC in cache initializationJorge Ruesga2013-09-011-6/+6
| | | | | | | | | | Patchset 2: Remove unnecessary sleep Patchset 3: Revert original comment Change-Id: I1594e2001bdfef282d010399e70f1f0066ec4c06 JIRA: CYAN-1996 Issue: https://jira.cyanogenmod.org/browse/CYAN-1996 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Improve context menusDanny Baumann2013-08-178-9/+71
| | | | | | | | - Add a 'play next' item to song context menu - Replace 'add to queue' by 'remove from queue' item in queue context menu Change-Id: I7ce2af040fdf823b025237518bf4ccc063812777
* Reset next Track in Apollo on QUEUE_CHANGEDHendrik Borghorst2013-08-161-0/+5
| | | | | | | | | | | | If you change the queue for the next track mediaplayer don't gets reinitialized. This means the next song which is played is actually the one queued before change of queue. PS2: Only setNextTrack if Service is actually playing at the moment. PS3: Whitespace fix PS4: Remove last track in queue case included. Space fixed Change-Id: I9ddd762d3c42815e7b365f6a5c4b124f5d940a5a
* Merge "Add support for new remote control interfaces in API 18." into cm-10.2Danny Baumann2013-08-062-65/+147
|\
| * Add support for new remote control interfaces in API 18.Danny Baumann2013-08-052-65/+147
| | | | | | | | | | | | Also add album artist to remote control data. Change-Id: Ia7da61a968abc12b914b22f0111a4adce12a744d
* | Merge "Apollo: allow deletion of tracks in Queue." into cm-10.2Danny Baumann2013-08-031-4/+8
|\ \ | |/ |/|
| * Apollo: allow deletion of tracks in Queue.Kyrylo Mikos2013-08-011-4/+8
| | | | | | | | | | | | | | After introducing of DeleteDialogCallback it is safe to remove songs from queue. Change-Id: Ifa6c39312244413801a5d5628f1d5251b27ee147
* | Apollo: Make albums with the same name to use respective album-art/date/etc.Przemyslaw Kryger2013-07-3014-88/+100
|/ | | | | | | | | | | | It may happen that two (or more) albums have the same name but each of them comes from different artist. This case was not handled correctly causing with the same album art to be used for all albums. This patch makes sure that the proper album data is fetched for album. It's achieved by either adding album artist (i.e., for cached images) or using album id (unique) where possible (not causing too much code churn). Change-Id: I181a28d80a18207101c613cca390f18d88dd556a
* Merge "Apollo: Add menu action to delete current track." into cm-10.1Danny Baumann2013-07-232-2/+23
|\
| * Apollo: Add menu action to delete current track.Kyrylo Mikos2013-07-232-2/+23
| | | | | | | | Change-Id: I8fad766ebba53bf37d8f965761e9da4ca4fafb87
* | Merge "Add some (optional) debug logging to the player service." into cm-10.1Danny Baumann2013-07-221-0/+35
|\ \
| * | Add some (optional) debug logging to the player service.Danny Baumann2013-07-121-0/+35
| | | | | | | | | | | | Change-Id: I2f5aa9d0f799395b967906c9fc9677a80ab18e8f
* | | Merge "Cleanup: Use only one method to shut down the service instead of ↵Danny Baumann2013-07-221-78/+58
|\| | | | | | | | | | | two." into cm-10.1
| * | Cleanup: Use only one method to shut down the service instead of two.Danny Baumann2013-07-121-78/+58
| |/ | | | | | | | | | | | | | | Also make sure to release the audio focus when removing the notification due to being idle in order to remove the play controls from the lockscreen. Change-Id: I323db520ce107235ebe774109d0a3338688328b4
* / Apollo: open album by id rather by name and artist.Kyrylo Mikos2013-07-197-8/+12
|/ | | | | | | | Some artist has albums splitted into 2 parts with same name and in Apollo when we clicking on both albums we will get into Profile activity with first part of album. Change-Id: I96d5e7ee3ce0a04c708d1d8941096aaf942a25e3
* Apollo: Ignore playlist when name is null.Kyrylo Mikos2013-07-031-3/+6
| | | | | | | | | | | | | | | | | This will avoid nex crash: FATAL EXCEPTION: main java.lang.IllegalArgumentException: the bind value at index 1 is null at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:167) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137) at android.content.ContentProviderProxy.query(ContentProviderNative.java:366) at android.content.ContentResolver.query(ContentResolver.java:372) at android.content.ContentResolver.query(ContentResolver.java:315) at com.andrew.apollo.utils.MusicUtils.getIdForPlaylist(MusicUtils.java:669) at com.andrew.apollo.utils.MusicUtils.makePlaylistMenu(MusicUtils.java:1146) at com.andrew.apollo.ui.fragments.QueueFragment.onCreateContextMenu(QueueFragment.java:215) Change-Id: Ib60a55f54fedf18cf900c6e492c5b4135e5c86d8
* Fix merge derp.Danny Baumann2013-07-021-21/+4
| | | | Change-Id: I073afea4845958d0691687771c681c2e0900053e
* Merge "Make sure notification is shown when playback is started via media ↵David van Tonder2013-07-022-41/+79
|\ | | | | | | button intent." into cm-10.1
| * Make sure notification is shown when playback is started via mediaDanny Baumann2013-07-022-41/+79
| | | | | | | | | | | | | | | | | | | | | | | | button intent. Also make sure to properly remove it when music is stopped with screen of (e.g. when playing via BT): As handlers only count non-sleep times, we have to use the alarm manager in order to make sure the notification is removed after 1 minute. JIRA: CYAN-1067 Change-Id: I87a5328e5116d199e2f62119f5a76eca73a3ee4e
* | Merge "Don't start playing if we couldn't acquire audio focus." into cm-10.1David van Tonder2013-07-021-2/+6
|\ \
| * | Don't start playing if we couldn't acquire audio focus.Danny Baumann2013-06-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | This makes us not start playback when we get a 'play' media button event in the middle of a call for whatever reason. JIRA:CYAN-1067 Change-Id: If648da95c10716400eeba0b39a24213764370f7a
* | | Fix audio session ID handling when invoking DSP manager.Danny Baumann2013-07-023-12/+14
| |/ |/| | | | | Change-Id: I8ebb71e32191b79f08cfa9c72fab311048992fe8
* | Kill off the option to not use RemoteControlClient.Danny Baumann2013-06-303-118/+41
|/ | | | | | | | In API level 18 the RCC will also be used for AVRCP 1.3 metadata, which we certainly want to support. The decision whether to show the music controls in the keyguard should be done at the framework level. Change-Id: Ia17f9094231f3a76d1496ddf2ef2d90b2d4d9512
* Merge "Add support for playing files and playlists via intent." into cm-10.1Danny Baumann2013-04-292-0/+84
|\
| * Add support for playing files and playlists via intent.Danny Baumann2013-04-232-0/+84
| | | | | | | | Change-Id: I3a4be1d2eec159f47adcd9d7e9dae529ba1dbf35
* | Merge "Improve app widget layouts." into cm-10.1Andrew Neal2013-04-261-2/+10
|\ \
| * | Improve app widget layouts.Danny Baumann2013-04-261-2/+10
| |/ | | | | | | | | | | | | | | Make them cope with larger-than-usual font sizes, and simplify them in the process. Change-Id: Iee42b68bb9907838b6c933f046503aacb8259daf JIRA:CYAN-779
* | Merge "Make sure to not overflow thread pool." into cm-10.1Danny Baumann2013-04-261-1/+2
|\ \
| * | Make sure to not overflow thread pool.Danny Baumann2013-04-221-1/+2
| |/ | | | | | | | | | | | | | | When the image fetcher tasks are paused, adding new tasks can lead to thread pool overflow. Avoid adding new tasks in that case. Change-Id: I5b97ab8bd204b22af7eb57c388e2bb2796cde193 JIRA:MC-1