summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* CodeCleanup : Replace StringBuffer with StringRazorSharp2016-04-166-49/+34
| | | | Change-Id: I1f93ec71097c916e047d92d5413b9702272b500b
* Eleven: Simplify a boolean expressionRazorSharp2016-04-161-3/+2
| | | | Change-Id: I6bd01f9a194117238712734757e059aa8e24313c
* Eleven: much materialJoey Rizzoli2016-04-1513-97/+60
| | | | | | | | | - Remove old font, let's use the system's - Vector drawables - Update colors Change-Id: I6c4335f388c88fd4ce6d10e4995692aaf0679a49 Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
* Eleven: Use appropriate String value comparisonRazorSharp2016-04-111-1/+2
| | | | Change-Id: Iad2ef9085b7f011ccc9e95e9f3874ad5a547daad
* Eleven: Remove unnecessary local variablesRazorSharp2016-04-116-16/+9
| | | | Change-Id: Ic92632873f75bd2d4569a4700a744a3ca17e99cb
* Codecleanup: Use Chained append calls to improve the performanceRazorSharp2016-02-204-5/+8
| | | | Change-Id: Ieb9d4ba314d4859f5f17af5cbedd8c06c06ac0b7
* CodeCleanup : Remove redundant Type CastingRazorSharp2016-02-202-2/+3
| | | | Change-Id: I1d539acc4e8bae4a0f9996297936e5c862679660
* Eleven: Synchronization on a non-final field 'mPauseLock'RazorSharp2016-02-201-1/+1
| | | | Change-Id: I957b2d5010f31edab105c3ffd553feafe32bb99f
* Improve preview activity behaviour.Danny Baumann2016-02-041-1/+1
| | | | | | | Move the seek bar to the very end on completion, and make sure the preview activity isn't added to the (main) player task. Change-Id: Ic55e2b04b4be4172a7dcca45ff5f30e54c9e5d23
* Eleven: Remove wakelockmyfluxi2015-12-231-32/+5
| | | | | | | We do not need this, let the device sleep during (offloaded) playback. Change-Id: I596b480a6361745b96b547c93f1d5433e18069e0
* Eleven: lastFM: Replace HttpStatus use with HttpURLConnectionBrandon McAnsh2015-10-091-2/+1
| | | | | | | | | * org.apache.http.* is now deprecated https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client Change-Id: Ibd1b044609d8057a67e2928e494c8a0dbd8f8fee Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* Eleven: Visualizer: Add back landscape modeLinus Lee2015-08-132-13/+17
| | | | | | | | | - Disable visualizer when queue panel is on top - For some reason, the layout size isn't picked up by its parent, so for now force it to be square in onMeasure Change-Id: I71d3489def08a1ea347801211d92cd113b9cbd5f
* Add ability to seek through track with circular motionLinus Lee2015-08-114-33/+211
| | | | | | | | | | With this patch, if you do a circular gesture motion on the large play button, you can seek the track instead of using the long press of the next/previous buttons Also change the progress bar to 1000 to allow for smaller updates Change-Id: I38512b2439227686bc6363e77b1858dbb5764a9f
* Visualizer tweaksUtkarsh Gupta2015-08-084-64/+42
| | | | | | | | | | | - Show visualizer even when sliding panels - Hide visualizer in power save mode - Ignore first 2 bytes of FFT Data - they are quite random - Hide visualizer in landscape mode - Reduce color update delay Change-Id: I90f1a442db2f56f0e4075ff096711c163626731b Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
* Upgrade visualizerUtkarsh Gupta2015-07-214-210/+232
| | | | | | | | | | | * A different visualizer: http://imgur.com/npV2zyO * Much smoother than the current one, Always stays above 60fps (even in powersave mode). * Abandon android-visualizer library. * Set visualizer color alpha to 75% Change-Id: I08ad5815893735f4427e84d460c4f7a06bf4b019 Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
* eleven: fix invalid srt formatsJorge Ruesga2015-07-131-0/+6
| | | | | | | | | Check for invalid time formats in srt files too. If there is an exception loading the file just throw out the entire file. Change-Id: Ic6011f843d1c433e9d8d84281c1c98dc5deaf547 JIRA: NIGHTLIES-1552 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Dynamically generate visualizer colorUtkarsh Gupta2015-07-073-62/+84
| | | | | | | | | * Set visualizer color along with status bar * Fix visualizer not showing up after window focus lost * Cache visualizer parameters Change-Id: I915e91f485b6e8b8600dad8d9ce304089ba53003 Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
* AudioPreviewActivity: Better external audio previewingMartin Brabham2015-06-154-5/+854
| | | | | | - Adds a pop up activity that previews the audio with minimal playback controls Change-Id: I163e47b3ec91603d788cfdbc8ad0262b33d786e6
* Eleven: Add playlist cover art to search resultsLinus Lee2015-05-291-46/+5
| | | | | Change-Id: I63f3b15cc9757b0daa945e4d8a3920c28673713d (cherry picked from commit b84e90377248a0155019915529d45461c3403d44)
* Eleven: remove an unnecessary check when playing music to improve perfLinus Lee2015-05-291-9/+0
| | | | | Change-Id: Ic9b6d1ee2f80446013dd0794696e8cd66a73221e (cherry picked from commit bda812eec5dd254ff5ab32773dc6aa24f3171b60)
* Eleven: Add a play Album option on songsLinus Lee2015-05-293-0/+19
| | | | | Change-Id: I62bf42f98ba8457b0121b723b7e4ace218805577 (cherry picked from commit 40c5425291bd07cb17a31f8d8169e142a51b7a19)
* Add Landscape support to ElevenLinus Lee2015-05-205-30/+93
| | | | | | | | This adds most of the support. There is a bug around the album art not loading on rotation - but this patch covers pretty much every other case Change-Id: If9033b0323beab8837493d289dcf77b76d1ea8c9
* Merge "Eleven: Show/Hide album art on lockscreen" into cm-12.1Abhisek Devkota2015-04-205-9/+63
|\
| * Eleven: Show/Hide album art on lockscreenMikalacki Sava2015-04-175-9/+63
| | | | | | | | | | | | Added preference option to show/hide album art on lockscreen. Change-Id: Iea2173288fc279f15abe6675a0ffd582e35ad321
* | Eleven: properly send open/close session eventsRoman Birg2015-04-201-4/+11
|/ | | | | | | | These were being fired off at device boot and there was a session being held for the entire duration. Only request the session when playing. Change-Id: I37ebc5a6898453dd090cc68ee2126e9c5d08d892 Signed-off-by: Roman Birg <roman@cyngn.com>
* Eleven: shake to play next song, only available while music is playing.stable/cm-12.0-YNG1IMikalacki Sava2015-02-236-2/+408
| | | | | | | | 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: Fix crash in LetterTileDrawablemorckx2015-01-191-1/+1
| | | | | | | - Make sure that the title string is not empty. Change-Id: Ifa4b4f916f476519ecef19629e5b9d33ac0642e1 Signed-off-by: morckx <morckx@gmail.com>
* Eleven: Fix LocalizedSongSort - Missed Collate keywordlinus_lee2015-01-072-4/+8
| | | | Change-Id: Ief86b3fea672bcc498a4560fab40486657cc2751
* Eleven: Fix equalizer not pausing, action bar hiding and 1px equalizer on xxhdpilinus_lee2015-01-052-21/+2
| | | | | | | | | 1) Equalizer was not pausing because HomeActivity onSlide wasn't calling super.onSlide 2) Action bar hiding - the hiding/showing of the action bar was ripped out in materialize but was missing in one spot so in some sceanrios we were hiding it and never showing it again 3) the 1px equalizer fuzz was really bothering me especially since it showed while paused Change-Id: I47475e3ea724fa460125c753fb64ec2dd7f095d5
* Make buttons more touch friendly.Danny Baumann2014-12-271-0/+1
| | | | | | | Do this by replacing margins and empty space around buttons by padding. Doing this also makes the ripple touch feedback look better. Change-Id: I7f2e933b9f7b481c9456f56860483c2e5e96b67b
* Eleven: materializelinuxx2014-12-2728-3144/+451
| | | | | | | | -Material Ui theme -New launcher icon -Better tabs Change-Id: I712ac2eb5256841cf89d198eed775ce8afe9d09c
* 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: Add some caching logic to BitmapWithColors for perf optimizationlinus_lee2014-12-233-39/+55
| | | | Change-Id: I9fe5e83b9b1b5bb8ca24978436ed371eec2db399
* Eleven: Make sure we have vibrant colors for all default colorslinus_lee2014-12-207-49/+149
| | | | Change-Id: I4be163e75fc35d3b139439c504d769d17d980ace
* Eleven: Add missing metadata keys for Avrcp.solk22014-12-191-0/+32
| | | | Change-Id: I7201838cf65b6b1edcf2aee0284e31bdafaf42ca
* Improve notification UX.Danny Baumann2014-12-196-98/+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-162-5/+47
| | | | | | | 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-132-95/+94
|\
| * Eleven: Fix crash when launching a song from file managerlinus_lee2014-12-112-95/+94
| | | | | | | | | | | | | | 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
* | Merge "Update Notification background color" into cm-12.0Linus Lee2014-12-121-5/+27
|\ \
| * | 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: Fix default art color in notificationlinus_lee2014-12-122-2/+17
| | | | | | | | | | | | | | | | | | The key being passed in did not match in some cases causing this problem Change-Id: Ibbd985d6f0fb0ff3fb90908481f8180715cf2ec7
* | | Merge "EqualizerView: don't compute log(0)" into cm-12.0Linus Lee2014-12-121-1/+1
|\ \ \
| * | | EqualizerView: don't compute log(0)Pawit Pornkitprasan2014-12-121-1/+1
| |/ / | | | | | | | | | | | | | | | | | | Because log(0) is undefined (turns out to be -2147483008.000000) and that crashses on 480x800 hdpi Change-Id: I41956944497c83214ee8e8378bc0924171633f21
* / / Fix IndexOutOfBoundsException.Danny Baumann2014-12-121-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backtrace: E/AndroidRuntime(23398): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 E/AndroidRuntime(23398): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) E/AndroidRuntime(23398): at java.util.ArrayList.get(ArrayList.java:308) E/AndroidRuntime(23398): at com.cyanogenmod.eleven.loaders.SortedCursor.getExtraData(SortedCursor.java:120) E/AndroidRuntime(23398): at com.cyanogenmod.eleven.loaders.SongLoader.loadInBackground(SongLoader.java:114) E/AndroidRuntime(23398): at com.cyanogenmod.eleven.loaders.SongLoader.loadInBackground(SongLoader.java:40) E/AndroidRuntime(23398): at com.cyanogenmod.eleven.sectionadapter.SectionCreator.loadInBackground(SectionCreator.java:69) E/AndroidRuntime(23398): at com.cyanogenmod.eleven.sectionadapter.SectionCreator.loadInBackground(SectionCreator.java:30) E/AndroidRuntime(23398): at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:242) E/AndroidRuntime(23398): at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51) E/AndroidRuntime(23398): at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40) E/AndroidRuntime(23398): at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123) E/AndroidRuntime(23398): at java.util.concurrent.FutureTask.run(FutureTask.java:237) Change-Id: Ief99bf8b761bcdbccbcaefed6f54aa57e0ba9fbb
* | Merge "Add improved localized sorting (similar to contacts sorting) to ↵linus_lee2014-12-1226-783/+2122
|\ \ | | | | | | | | | Eleven" into cm-12.0
| * | Add improved localized sorting (similar to contacts sorting) to Elevenlinus_lee2014-12-1126-783/+2122
| | | | | | | | | | | | Change-Id: I6d06f9e6974a2dc178445ca71c7c7f1355e00804
* | | 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: Make the Equalizer button a bit smarterlinus_lee2014-12-113-6/+37
| | | | | | | | | | | | | | First check if the intent can resolve properly Secondly start for result to make some MusicFX apps work Change-Id: Id9b597d0a3881ad7a433a0d39383dddc94b9e3fc
* | 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