OSDN Git Service
Linus Lee [Sat, 18 Apr 2015 00:30:21 +0000 (17:30 -0700)]
Eleven: Add playlist cover art to search results
Change-Id: I63f3b15cc9757b0daa945e4d8a3920c28673713d
(cherry picked from commit
b84e90377248a0155019915529d45461c3403d44)
Linus Lee [Sat, 18 Apr 2015 00:59:24 +0000 (17:59 -0700)]
Eleven: remove an unnecessary check when playing music to improve perf
Change-Id: Ic9b6d1ee2f80446013dd0794696e8cd66a73221e
(cherry picked from commit
bda812eec5dd254ff5ab32773dc6aa24f3171b60)
Linus Lee [Sat, 18 Apr 2015 00:08:07 +0000 (17:08 -0700)]
Eleven: Add a play Album option on songs
Change-Id: I62bf42f98ba8457b0121b723b7e4ace218805577
(cherry picked from commit
40c5425291bd07cb17a31f8d8169e142a51b7a19)
Danny Baumann [Fri, 29 May 2015 07:32:46 +0000 (07:32 +0000)]
Merge "Eleven: Remove inset from top tracks circle" into cm-12.1
Linus Lee [Thu, 28 May 2015 23:40:15 +0000 (16:40 -0700)]
Eleven: Remove inset from top tracks circle
Not sure why this removed the circle, but we don't really need the 1dp inset
Change-Id: Iaa978b5a964b4d7b2d1e1be186790f64023beb24
Michael Bestas [Sun, 24 May 2015 20:34:21 +0000 (23:34 +0300)]
Automatic translation import
Change-Id: Ib33c7a7b4e38d200066ed9fdd1a3304c0a0659d4
Linus Lee [Fri, 22 May 2015 19:58:14 +0000 (19:58 +0000)]
Merge "Add Landscape support to Eleven" into cm-12.1
Linus Lee [Sat, 18 Apr 2015 01:52:24 +0000 (18:52 -0700)]
Add Landscape support to Eleven
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
Michael Bestas [Fri, 15 May 2015 21:01:48 +0000 (00:01 +0300)]
Automatic translation import
Change-Id: I2b65bc8a68a9f99303e19be302eb451a20659959
Michael Bestas [Fri, 1 May 2015 23:52:14 +0000 (02:52 +0300)]
Automatic translation import
Change-Id: Ib44ae71a0eaef8df5c473639746083c4800b67da
Michael Bestas [Fri, 24 Apr 2015 22:14:16 +0000 (01:14 +0300)]
Automatic translation import
Change-Id: If11d181c630d1439723ccdf38d2af70a01d1bcd9
Linus Lee [Sat, 18 Apr 2015 00:33:40 +0000 (17:33 -0700)]
Eleven: minor string tweaks
Change-Id: If61a9fceb262d96418134a986a24ec7d79730333
(cherry picked from commit
405d0d09ad8b3ecb24f3633695c034da2cec404e)
Abhisek Devkota [Mon, 20 Apr 2015 21:24:24 +0000 (21:24 +0000)]
Merge "eleven: remove_ACTION_PICK from manifest" into cm-12.1
Abhisek Devkota [Mon, 20 Apr 2015 21:24:01 +0000 (21:24 +0000)]
Merge "Eleven: Checkboxes to switches" into cm-12.1
Abhisek Devkota [Mon, 20 Apr 2015 21:23:52 +0000 (21:23 +0000)]
Merge "Eleven: Show/Hide album art on lockscreen" into cm-12.1
Roman Birg [Wed, 15 Apr 2015 00:08:54 +0000 (17:08 -0700)]
Eleven: properly send open/close session events
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>
Michael Bestas [Fri, 17 Apr 2015 19:19:12 +0000 (22:19 +0300)]
Automatic translation import
Change-Id: I5bf81d21196cfbf74d7e1451ad9000e89a97d79e
Jorge Ruesga [Sat, 28 Mar 2015 21:30:46 +0000 (22:30 +0100)]
eleven: remove_ACTION_PICK from manifest
We are far from support pick an audio file. This cause MMS to be able to pick an
audio file with Eleven, which is currently not possible.
Change-Id: I65192d1dccd0b98982d65c7743c51cda3860f7d5
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Michael Bestas [Wed, 18 Mar 2015 23:48:19 +0000 (01:48 +0200)]
Eleven: Checkboxes to switches
Change-Id: I41439cc69147db49b08cace87ba3513d34dbac6c
Mikalacki Sava [Wed, 4 Mar 2015 15:18:14 +0000 (16:18 +0100)]
Eleven: Show/Hide album art on lockscreen
Added preference option to show/hide album art on lockscreen.
Change-Id: Iea2173288fc279f15abe6675a0ffd582e35ad321
Michael Bestas [Mon, 6 Apr 2015 21:50:07 +0000 (00:50 +0300)]
Automatic translation import
Change-Id: Iafb5430b416befbb68309e16bf2cf7a4984c7347
Michael Bestas [Mon, 30 Mar 2015 22:50:06 +0000 (01:50 +0300)]
Automatic translation import
Change-Id: I3146069beab8e56c5583ac8c3068b8f2ba65daa3
Michael Bestas [Sun, 22 Mar 2015 18:00:54 +0000 (20:00 +0200)]
Automatic translation import
Change-Id: I57fb2e9ca94f3cf041da11897c015662bd4fdfdf
Michael Bestas [Sat, 14 Mar 2015 23:47:49 +0000 (01:47 +0200)]
Automatic translation import
Change-Id: I706ba0b421b725967fca66376be10a6a4027e4f1
Bryan Owens [Thu, 9 Apr 2015 22:14:00 +0000 (17:14 -0500)]
Expose colors from array in Eleven player
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
Change-Id: I0524ee3c1425ff94c33147cf7a9978fb69f3cc04
Michael Bestas [Fri, 6 Mar 2015 21:00:15 +0000 (23:00 +0200)]
Automatic translation import
Change-Id: I0eb3d9ee073d85db21c22c6c88936840669d7ea9
Michael Bestas [Thu, 5 Mar 2015 22:11:21 +0000 (00:11 +0200)]
Improve string
Change-Id: I1cb08b5eb897a57f4027fb4a6864e27640659688
Michael Bestas [Sat, 28 Feb 2015 00:22:52 +0000 (02:22 +0200)]
Automatic translation import
Change-Id: Iba82e26dbbedcb0e82b42d822f2af01774f818e2
Mikalacki Sava [Tue, 13 Jan 2015 16:37:46 +0000 (17:37 +0100)]
Eleven: shake to play next song, only available while music is playing.
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
Michael Bestas [Wed, 18 Feb 2015 19:49:30 +0000 (21:49 +0200)]
Automatic translation import
Change-Id: I71ce21285d97675bc0aa6678a561d8aaa609cc5c
Michael Bestas [Tue, 10 Feb 2015 21:38:33 +0000 (23:38 +0200)]
Automatic translation import
Change-Id: Ifdbb2e2ab68d314f033b12c55fe96b845a3b194f
Michael Bestas [Mon, 2 Feb 2015 07:02:31 +0000 (09:02 +0200)]
New Material icon
* Created by Jovie Brett Bardoles
Change-Id: If061e56906567722550c230a8f8cfd87f90ba97d
morckx [Mon, 19 Jan 2015 09:22:46 +0000 (10:22 +0100)]
Eleven: Fix crash in LetterTileDrawable
- Make sure that the title string is not empty.
Change-Id: Ifa4b4f916f476519ecef19629e5b9d33ac0642e1
Signed-off-by: morckx <morckx@gmail.com>
linus_lee [Tue, 6 Jan 2015 23:20:28 +0000 (15:20 -0800)]
Eleven: Fix LocalizedSongSort - Missed Collate keyword
Change-Id: Ief86b3fea672bcc498a4560fab40486657cc2751
linus_lee [Mon, 5 Jan 2015 22:01:36 +0000 (14:01 -0800)]
Eleven: Fix equalizer not pausing, action bar hiding and 1px equalizer on xxhdpi
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
Danny Baumann [Fri, 19 Dec 2014 12:42:57 +0000 (13:42 +0100)]
Make buttons more touch friendly.
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
linuxx [Wed, 10 Dec 2014 17:25:02 +0000 (18:25 +0100)]
Eleven: materialize
-Material Ui theme
-New launcher icon
-Better tabs
Change-Id: I712ac2eb5256841cf89d198eed775ce8afe9d09c
linus_lee [Tue, 23 Dec 2014 01:18:39 +0000 (17:18 -0800)]
Eleven: Show error message for corrupt tracks (additional codepaths)
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
linus_lee [Tue, 23 Dec 2014 03:15:31 +0000 (19:15 -0800)]
Eleven: Add some caching logic to BitmapWithColors for perf optimization
Change-Id: I9fe5e83b9b1b5bb8ca24978436ed371eec2db399
linus_lee [Fri, 19 Dec 2014 19:10:06 +0000 (11:10 -0800)]
Eleven: Make sure we have vibrant colors for all default colors
Change-Id: I4be163e75fc35d3b139439c504d769d17d980ace
solk2 [Fri, 12 Dec 2014 09:35:12 +0000 (11:35 +0200)]
Eleven: Add missing metadata keys for Avrcp.
Change-Id: I7201838cf65b6b1edcf2aee0284e31bdafaf42ca
Danny Baumann [Fri, 12 Dec 2014 14:57:58 +0000 (15:57 +0100)]
Improve notification UX.
- 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
Rajesh Yengisetty [Tue, 16 Dec 2014 22:55:02 +0000 (22:55 +0000)]
Merge "Eleven: Remove tracks that give problems from the queue and warn" into cm-12.0
linus_lee [Mon, 15 Dec 2014 21:58:18 +0000 (13:58 -0800)]
Eleven: Remove tracks that give problems from the queue and warn
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
Konsta [Sun, 14 Dec 2014 12:03:53 +0000 (14:03 +0200)]
Eleven: Add more missing mdpi/hdpi/xhdpi drawables
And remove couple of unused drawables while at it.
Change-Id: I9973c625e1f0922cf9f1c91729409a2a1dc0a83c
Konsta [Sat, 13 Dec 2014 13:13:35 +0000 (15:13 +0200)]
Eleven: Add missing mdpi/hdpi/xhdpi drawables
Fix crash on builds that don't include xxhdpi drawables.
Change-Id: I4b90575939f0b7f696279ec6353f6c91fcc1f9f4
Rajesh Yengisetty [Sat, 13 Dec 2014 01:19:00 +0000 (01:19 +0000)]
Merge "Eleven: Fix crash when launching a song from file manager" into cm-12.0
Linus Lee [Fri, 12 Dec 2014 23:27:16 +0000 (23:27 +0000)]
Merge "Update Notification background color" into cm-12.0
linus_lee [Fri, 12 Dec 2014 20:37:34 +0000 (12:37 -0800)]
Eleven: Fix default art color in notification
The key being passed in did not match in some cases causing this problem
Change-Id: Ibbd985d6f0fb0ff3fb90908481f8180715cf2ec7
Linus Lee [Fri, 12 Dec 2014 19:09:56 +0000 (19:09 +0000)]
Merge "EqualizerView: don't compute log(0)" into cm-12.0
Danny Baumann [Fri, 12 Dec 2014 16:43:35 +0000 (17:43 +0100)]
Fix IndexOutOfBoundsException.
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
Andrew Neal [Wed, 10 Dec 2014 09:51:42 +0000 (10:51 +0100)]
Update Notification background color
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
Pawit Pornkitprasan [Fri, 12 Dec 2014 08:09:20 +0000 (15:09 +0700)]
EqualizerView: don't compute log(0)
Because log(0) is undefined (turns out to be -
2147483008.000000)
and that crashses on 480x800 hdpi
Change-Id: I41956944497c83214ee8e8378bc0924171633f21
linus_lee [Fri, 12 Dec 2014 01:35:37 +0000 (17:35 -0800)]
Eleven: Fix crash when launching a song from file manager
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
linus_lee [Fri, 12 Dec 2014 01:06:59 +0000 (01:06 +0000)]
Merge "Add improved localized sorting (similar to contacts sorting) to Eleven" into cm-12.0
linus_lee [Thu, 4 Dec 2014 20:30:29 +0000 (12:30 -0800)]
Add improved localized sorting (similar to contacts sorting) to Eleven
Change-Id: I6d06f9e6974a2dc178445ca71c7c7f1355e00804
linus_lee [Thu, 11 Dec 2014 21:10:07 +0000 (13:10 -0800)]
ELeven: Show notifications only when outside music app and have a linger timer
If you played music recently and leave the app it'll still show the notification now
for up to 5 minutes
Change-Id: I530c548bd4e3b8cf458341b068d78b54f1528b2c
Rajesh Yengisetty [Thu, 11 Dec 2014 20:19:06 +0000 (20:19 +0000)]
Merge "Eleven: fix default image not showing up in queue fragment" into cm-12.0
linus_lee [Thu, 11 Dec 2014 02:00:54 +0000 (18:00 -0800)]
Eleven: Make the Equalizer button a bit smarter
First check if the intent can resolve properly
Secondly start for result to make some MusicFX apps work
Change-Id: Id9b597d0a3881ad7a433a0d39383dddc94b9e3fc
linus_lee [Thu, 11 Dec 2014 19:03:45 +0000 (11:03 -0800)]
Eleven: Fix exception when leaving Eleven with nothing in the queue
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
linus_lee [Wed, 10 Dec 2014 21:49:25 +0000 (13:49 -0800)]
Eleven: fix default image not showing up in queue fragment
SquareImageView and the LetterTileDrawable doesn't work well together
Since this image has fixed dimensions we don't need SquareImageView anyways
Change-Id: I8dcac7b3170af227f39d6d6333ff7d0497592bf9
Danny Baumann [Wed, 10 Dec 2014 09:41:51 +0000 (10:41 +0100)]
Use L's new notification and media session API.
Change-Id: Ic9e7facdfa7213439b168a915ac9f2e8afc0a252
linus_lee [Tue, 9 Dec 2014 21:12:25 +0000 (13:12 -0800)]
Add Notice and Apache2 Module
Change-Id: I34906e2e169f3ab44eb5fc5a9215aea7cb89856f
linus_lee [Fri, 21 Nov 2014 00:39:38 +0000 (16:39 -0800)]
Update Eleven headers and namespace for open source
Change-Id: I82caf2ebf991998e67f546ff2ac7eaf2b30dc6be
linus_lee [Thu, 27 Nov 2014 02:20:29 +0000 (18:20 -0800)]
Eleven: Switch default artist and album to a more colorful version
Also fixed a bug where playlist worker tasks were running more than necessary
Removed the picker to fetch images from internet
because last.fm is removed for now
Change-Id: Ice438ac650d8b7be0c275f8270af13086e6568d6
linus_lee [Wed, 26 Nov 2014 02:13:15 +0000 (18:13 -0800)]
Eleven: Make album art show up more consistently in shuffle and not repeat
A more complete fix needs a music service rewrite - I've tried to find a
complete solution that doesn't need a rewrite but cannot figure out a good one
For now this will make all of them but the first one of the next round show up
https://cyanogen.atlassian.net/browse/MUSIC-189
Change-Id: Idd64754001a679cf9a9b16f71d285e0fb4dd1b6d
linus_lee [Wed, 19 Nov 2014 20:47:04 +0000 (12:47 -0800)]
Eleven: Add Lyric (srt) support
https://cyanogen.atlassian.net/browse/MUSIC-186
Change-Id: I8fec1c61d69dca06be30ccebf9c996d7fac2ae75
linus_lee [Tue, 4 Nov 2014 01:18:35 +0000 (17:18 -0800)]
Eleven: Fix playlist reordering not working after awhile
Still trying to find the root cause (if it is Eleven or external)
but this will find the errors and fix it after the fact
https://cyanogen.atlassian.net/browse/MUSIC-179
Change-Id: Iaa3e27522aefc656f37ff7e727e9129c1a07f12e
linus_lee [Thu, 20 Nov 2014 01:52:53 +0000 (17:52 -0800)]
Eleven: Add equalizer visualization
Change-Id: I9a3112cf4138e916ed53571236e54b67c30b53c4
linus_lee [Tue, 25 Nov 2014 00:32:28 +0000 (16:32 -0800)]
Eleven: fix play icon on l
useLevel is flipped on L apparently and we need it for drawing Rings, so define it explicitly
Change-Id: If31b250d439961e48b77432a845d88bce1ba5e91
Rohit Yengisetty [Wed, 22 Oct 2014 23:32:26 +0000 (16:32 -0700)]
Eleven - Introducing the ability to filter a list items into two - localizable
and non-localizable based on a specified attribute of the item.
Udpating the SongFragment and ArtistFragment to list localizable songs
towards the top, while pushing the others towards the bottom of the list.
Also, updated the section creator logic to *not* create sections for the non-
latin named songs.
https://cyanogen.atlassian.net/browse/MUSIC-73
Change-Id: I5aaa98ae4312a9f1d142a48aaf025bdbc7e0150b
Conflicts:
src/com/cyngn/eleven/loaders/AlbumLoader.java
src/com/cyngn/eleven/loaders/ArtistLoader.java
src/com/cyngn/eleven/loaders/SongLoader.java
linus_lee [Thu, 20 Nov 2014 22:22:16 +0000 (14:22 -0800)]
Eleven: Import Strings from
ffcceded7af224ffefeaec3043a130d286a6f238
Change-Id: I69af29fa4a64fdad2610f68035dbc16d7b5a8688
linus_lee [Wed, 19 Nov 2014 22:45:48 +0000 (14:45 -0800)]
Eleven: Remove download from settings until we have alternative
Missed this in my previous change
3f2f46ae264b6b100e4095b39af0b2550f743cd0
Change-Id: I82e1f51e19200bb4c308584f9fa809020bbe8649
linus_lee [Thu, 6 Nov 2014 00:14:44 +0000 (16:14 -0800)]
Eleven: Remove irrelevant options when queue is empty
https://cyanogen.atlassian.net/browse/MUSIC-182
Change-Id: Ie6aace33c27009bd93c512a4bc1b5ccbe49b68f1
linus_lee [Tue, 18 Nov 2014 19:22:07 +0000 (11:22 -0800)]
Eleven: Remove last.fm artwork calls until we find an alternative
Change-Id: I091c1054a8455cc70ddb4a6a68e0c125c5e04c59
linus_lee [Wed, 5 Nov 2014 01:52:36 +0000 (17:52 -0800)]
Eleven: Make the adapter changes refresh not jump to the top of the list
https://cyanogen.atlassian.net/browse/MUSIC-122
https://cyanogen.atlassian.net/browse/MUSIC-130
Change-Id: I6216a84eb13d47b1b6a68fef2b698efebf677d9f
Wilhelm Fitzpatrick [Mon, 3 Nov 2014 22:30:09 +0000 (14:30 -0800)]
Eleven: changed AlbumAdapter to use padding for header/footer spacing
Addresses https://cyanogen.atlassian.net/browse/MUSIC-145 and also fixes
regression where AlbumFragment was not displaying the "no music" view
when no music was available.
Change-Id: I89dddb99f396b0560106edc20236cf6754446691
Raj Yengisetty [Tue, 4 Nov 2014 18:59:53 +0000 (10:59 -0800)]
Eleven: Fix cursor finalized prior to close warning messages
https://cyanogen.atlassian.net/browse/MUSIC-152
Change-Id: I7b3425621700fcb334ff4d4e0cc54c9994fda420
Rohit Yengisetty [Mon, 3 Nov 2014 20:20:34 +0000 (12:20 -0800)]
Eleven - Changing the color of the Notification divider line to blue.
Also increasing the inactivity-timeout of the notification to 5
minutes.
https://cyanogen.atlassian.net/browse/MUSIC-160
https://cyanogen.atlassian.net/browse/MUSIC-177
Change-Id: If4c6a961fbec4dd8be43e6c7ba25a42488e70afb
linus_lee [Mon, 3 Nov 2014 20:02:24 +0000 (12:02 -0800)]
Eleven: Fix a slight regression with the blur image loading too often
Not exactly a regression, but some code cleanup that removed duplicate logic exposed this issue
Basically when a worker task completes, it is possible the AsyncTaskContainer will not have a
reference to it anymore, so store the key separately in case
https://cyanogen.atlassian.net/browse/MUSIC-180
Change-Id: I0757133f18758901fee00e3210472b2c1a206ab8
linus_lee [Fri, 31 Oct 2014 23:54:38 +0000 (16:54 -0700)]
Eleven - Fix the PlaylistDetailFragment crash
https://cyanogen.atlassian.net/browse/MUSIC-154
Change-Id: Ifd27b231b0d98df0133f961c0b4bcd5a7c0dfbbc
linus_lee [Fri, 31 Oct 2014 00:25:09 +0000 (17:25 -0700)]
Eleven: Fix some bugs around the blur drawable not loading
I found three main bugs after some painful investigation
1) The stored key was different from the task key causing the check to always
return false, meaning the blurtask was always cancelled. If we tried to load
the same album music 3 times in a row, the blur image will always re-kick off
even though they are the same image
2) Images don't load while scrolling for perf reasons, and for the lists,
the adapters are notified on scroll stop, but the blur image/album art pager/
bottom album art aren't
3) This was the winner - so if we load an image followed by two default images
on the 2nd default image we create the transition drawable but don't set it into
the blur image because it is a duplicate. Inside the transition drawable it takes
the drawable and sets the listener to the transition drawable, so even if though we
don't set it into the imageview, the 1st transition drawable now isn't hooked up properly
and if this happens while the application isn't in the foreground then you can come back
and the transition drawable wouldn't have fired off
https://cyanogen.atlassian.net/browse/MUSIC-173
https://cyanogen.atlassian.net/browse/MUSIC-138
Change-Id: I9f99273bfcfe328179849f2131d4b1b2c98ca088
linus_lee [Thu, 30 Oct 2014 19:28:36 +0000 (12:28 -0700)]
Eleven: Fix Play next to work as expected
https://cyanogen.atlassian.net/browse/MUSIC-66
https://cyanogen.atlassian.net/browse/MUSIC-156
Change-Id: Ia3f7305ccdc7811246f205f52c739e60d408a4ed
linus_lee [Fri, 31 Oct 2014 20:16:37 +0000 (13:16 -0700)]
Eleven: Fix perf for rearranging a very long list
The scroller would want to scroll through the list too quickly and the logic
would execute too much logic during the layout phase - for now just cap the max
scroll speed
https://cyanogen.atlassian.net/browse/MUSIC-174
Change-Id: I61ac30feb43afe672a8a38637b97ee622e332268
Wilhelm Fitzpatrick [Thu, 30 Oct 2014 00:05:59 +0000 (17:05 -0700)]
Eleven: deal with crashes/bad behavior when music files are deleted externally
https://cyanogen.atlassian.net/browse/MUSIC-163
Change-Id: Icb35ed12e6e71dc4ea57b9eb63fba89f7471ebc4
linus_lee [Thu, 30 Oct 2014 20:56:25 +0000 (13:56 -0700)]
Eleven: Fix action bar not updating when deleting a content
calling fragment remove doesn't incur a backstack changed even if it
is the top most fragment, so call popbackstack instead
https://cyanogen.atlassian.net/browse/MUSIC-169
Change-Id: I56314f61033013b736d7ce11178f2a92b52606a2
linus_lee [Tue, 28 Oct 2014 23:03:47 +0000 (16:03 -0700)]
Eleven: some perf improvements mainly when interacting with the widget
The main culprit is passing large default artwork to the remote views
It also appears that the events from the service may fire multiple times but
fixing that is not a small change - for now cache some of the heavier operations
instead
https://cyanogen.atlassian.net/browse/MUSIC-120
Change-Id: I8bbb10357c9d7d1c01ef5e7627efdf8e9b956421
linus_lee [Wed, 29 Oct 2014 23:16:10 +0000 (16:16 -0700)]
Eleven: Make Images load a bit faster
Load the images while the user is touching but not flinging
I tried a more in-depth solution by listening to the scroll listener
but you could see the scroll chop at the end. Probably looking into
loading an image per frame will be the only way to solve this route, but
I'm putting that on the backburner for now
https://cyanogen.atlassian.net/browse/MUSIC-86
Change-Id: I136688c6b6c380afcb34df0f7a7d6fc180da426c
Rohit Yengisetty [Fri, 31 Oct 2014 18:25:06 +0000 (11:25 -0700)]
Eleven - Remember the 'Shuffle' setting when switching playlists.
https://cyanogen.atlassian.net/browse/MUSIC-158
Change-Id: I2b7bec0e68e4976e020bea55e0c6ffbe338c01aa
Rohit Yengisetty [Tue, 28 Oct 2014 15:58:22 +0000 (08:58 -0700)]
Eleven - Modified HomeActivity#onNewIntent to handle media play
requests correctly. Also, transferred the playback control logic from
AudioPlayerFragment to HomeActivity.
https://cyanogen.atlassian.net/browse/MUSIC-4
Change-Id: I1abaa0be6d3a52526ff428b7eef6712e4d751119
Rohit Yengisetty [Thu, 30 Oct 2014 21:05:32 +0000 (14:05 -0700)]
Eleven - Modifying the removal behavior in Play Queue. Only the
selected song is removed from the list.
https://cyanogen.atlassian.net/browse/MUSIC-135
Change-Id: I2a1d89411891358207aa47930613574ba79e36e6
linus_lee [Thu, 30 Oct 2014 20:27:10 +0000 (13:27 -0700)]
Eleven: Handle partially downloaded images more gracefully
If the server interrupts the connection, we don't get a signal but
we can tell based on the content length
Also modified the code to read more than 1 byte at a time
I was able to simulate a repro by forcing the download to quit part
way through
https://cyanogen.atlassian.net/browse/MUSIC-147
Change-Id: I925fb9cef41485b55219ec4d2443ba809c83bce2
Wilhelm Fitzpatrick [Wed, 29 Oct 2014 01:17:15 +0000 (18:17 -0700)]
Eleven: prevent clicks from "leaking through" frontmost fragment
https://cyanogen.atlassian.net/browse/MUSIC-133
Change-Id: If0d7472f5406e946b1d924d6e61512436504255a
Wilhelm Fitzpatrick [Wed, 29 Oct 2014 00:38:56 +0000 (17:38 -0700)]
Eleven: add null-check while scrolling fading fragment to avoid crash
By inspection, it appears getContainingActivity() might return null while
the fragment is being destroyed. Added a null check to prevent a crash in
this eventuality.
https://cyanogen.atlassian.net/browse/MUSIC-129
Change-Id: I534e427f1e0b04a7acd3cca1632717a2b06f4923
Rohit Yengisetty [Tue, 28 Oct 2014 00:50:38 +0000 (17:50 -0700)]
Eleven - Modified overflow / popup menus to be black text on white bg
https://cyanogen.atlassian.net/browse/MUSIC-110
Change-Id: I0a49177d5f263dfa706544d33b6b8897264e584e
linus_lee [Tue, 28 Oct 2014 19:12:06 +0000 (12:12 -0700)]
Eleven: Don't show unknown artist/album entries
https://cyanogen.atlassian.net/browse/MUSIC-117
Change-Id: I02aeca81f35fa3b2f013d01d11e7c5611f70b943
linus_lee [Tue, 28 Oct 2014 02:18:38 +0000 (19:18 -0700)]
Eleven: Translation import
Pull down
9ed0c65dffe6a17550be6e60fb6d57c42b7c49df
Change-Id: I04c4500ef245c9b148cdc9df1705584fdc8ea5cb
linus_lee [Tue, 28 Oct 2014 18:44:03 +0000 (11:44 -0700)]
Eleven: Add a resume check to fix the action bar
https://cyanogen.atlassian.net/browse/MUSIC-62
Change-Id: I3e8d1aa9b805a4f70e35e9882f2c63b7fa537c01
linus_lee [Tue, 28 Oct 2014 01:30:24 +0000 (18:30 -0700)]
Eleven: Make fastforward/rewind more reliable
Part of the logic was in the ui to control the fastforward/rewind
when there is no need, and the asynchronisity of it was causing problems.
This moves the logic for seeking all into the service so that the ui only
tells the service that it should rewind/fastforward, and by how much
https://cyanogen.atlassian.net/browse/MUSIC-167
Change-Id: Id7623a1a755c7b1346874bdcf64126123eafc7d1
linus_lee [Mon, 27 Oct 2014 21:37:42 +0000 (14:37 -0700)]
Eleven: Remove some dead code and make app widgets just open up home activity
https://cyanogen.atlassian.net/browse/MUSIC-62
Change-Id: Ia92ea39f4b528a5f3958a8ce6877b9dc420bb838