571 Commits

Author SHA1 Message Date
Christopher Eby
bb39b8677e CoverView improvements
Cancel stale pending generate jobs---these can build up if skipping songs
rapidly. Avoid calling touch on worker thread---no advantage to doing so and
builds up jobs. Load songs in more optimal order (current, then next,
then previous).
2011-10-14 16:07:29 -05:00
Christopher Eby
518e16ffc4 Don't leak bitmaps for scale cover art mode
We were ignoring the bitmap that should have been recycled if unused.
2011-10-14 16:07:19 -05:00
Christopher Eby
c6b8efe2f4 Reorganize values into translatable/untranslatable 2011-10-13 18:42:27 -05:00
Christopher Eby
d9d47e276f Add disable lockscreen option 2011-10-13 17:48:59 -05:00
Christopher Eby
7f47b29073 Add random icon and genre icon 2011-10-11 23:32:09 -05:00
Christopher Eby
1bac719961 Add BackupManager support 2011-10-11 23:11:53 -05:00
Christopher Eby
3a5e506c6c Redraw CoverView when the generated bitmap is in the cache
postInvalidate was not being called in this case
2011-10-11 23:11:52 -05:00
Christopher Eby
2ad4e90cda Refactor PlaybackService start intents
It's a bit confusing as it is and was not properly playing for the autoplay intents
2011-10-11 23:11:38 -05:00
Christopher Eby
fb53c329bb Refactor MediaButtonHandler
Merge into MediaButtonReceiver, make static-only, avoid using reflection
2011-10-11 13:30:10 -05:00
Christopher Eby
556351df6c Some trivial clean-ups suggested by inspection 2011-10-11 12:58:10 -05:00
Christopher Eby
c09eadb951 Fix shuffle state cycling
Prevent the addition from overflowing
2011-10-11 02:11:16 -05:00
Christopher Eby
557649d7e5 Add Norwegian translation from Petter Sulwik 2011-10-07 14:17:03 -05:00
Christopher Eby
8e30ad605f Eliminate the useless layout for the message overlay 2011-10-04 02:02:35 -05:00
Christopher Eby
52377a86de Remove MiniPlaybackActivityLayout 2011-10-04 01:07:11 -05:00
Christopher Eby
fc3ce9f551 Use JUnit assert rather than assert keyword
These are turned on by default and can be compiled out entirely for release mode
2011-10-04 00:29:21 -05:00
Christopher Eby
fdcf44f36d Only run queries for the active tab in the library 2011-10-03 19:19:46 -05:00
Christopher Eby
de9793ca37 Cap user volume at 1.0
It seems that MediaPlayer.setVolume ignores anything greater.
2011-10-03 13:39:31 -05:00
Christopher Eby
af651e4aa5 Clear old data from flags when loading 2011-10-02 20:47:13 -05:00
Christopher Eby
f49d71f688 Use the correct sort order when using play all 2011-10-02 00:57:07 -05:00
Christopher Eby
fa1c9d23eb Ensure mExpanderPressed is accurate
It was not being set to false in the case where a non-header view was recycled
as a header view.
2011-10-02 00:46:22 -05:00
Christopher Eby
5a7e282a41 Remove untranslatable array and make overflowing tab text marquee 2011-09-29 13:34:50 -05:00
Pavol 'Scrool' Babincak
3a1d2f146f Slovak translation 2011-09-29 08:43:19 +02:00
Pavol 'Scrool' Babincak
1dbfd6471a Shorten long labels in tabs 2011-09-29 08:42:39 +02:00
Christopher Eby
a62659a917 Make service actions public and add play/pause actions 2011-09-27 18:24:14 -05:00
Christopher Eby
0938428514 Version 0.9.0
Just a test release
2011-09-27 02:07:38 -05:00
Christopher Eby
4a618c38ce Add play when headphones plugged option 2011-09-27 01:37:18 -05:00
Christopher Eby
78d471010d Add emulation of stock music player broadcast
This in the very least works with the CyanogenMod lockscreen controls.
2011-09-27 01:26:04 -05:00
Christopher Eby
396bc20bfd Prevent cover bitmaps for the actives songs from being deleted
Since previously we loaded directly from the cache, the actives songs' bitmaps
could be deleted if the next song was changing very frequently. While this is
fairly unlikely to happen, this new intermediate method should be a bit faster
anyway.
2011-09-27 00:26:59 -05:00
Christopher Eby
4a939a4ac1 Make swipes harder to accidently trigger 2011-09-27 00:26:55 -05:00
Christopher Eby
7c98ba54ed Speed up CoverView scrolling a bit 2011-09-27 00:26:50 -05:00
Christopher Eby
fa24f2aa0f Remove STORE_SIZE constant
It bothers me?
2011-09-27 00:26:47 -05:00
Christopher Eby
31651e491e Fix SongTimeline.removeSong
We were skipping songs as the index changes whenever we remove a song. Use an
iterator so we don't have to worry about that.
2011-09-27 00:26:43 -05:00
Christopher Eby
cd935206e4 Don't crash when failing to query a saved song 2011-09-27 00:26:42 -05:00
Christopher Eby
d17df425cd Move deleteMedia into PlaybackService 2011-09-27 00:26:41 -05:00
Christopher Eby
6cdaf3787d Pass ContentResolver instead of Context in some cases 2011-09-27 00:26:39 -05:00
Christopher Eby
870bc77e8b Avoid adding null songs to the library 2011-09-27 00:26:38 -05:00
Christopher Eby
9270c1a02d Update proguard.config 2011-09-27 00:26:30 -05:00
Christopher Eby
20a1ff1ae7 Change some log messages; remove SongNotification pref reset 2011-09-25 02:49:30 -05:00
Christopher Eby
086596b230 Reduce allocations in CoverView.onDraw
The Paint parameters for drawBitmap is unnecessary and we can avoid requesting
the clip rect.
2011-09-25 02:08:48 -05:00
Christopher Eby
ae78e46517 Reduce allocations in playback activity song position code 2011-09-25 01:50:14 -05:00
Christopher Eby
6da2526648 Use a cached SharedPreferences instance
Reduces allocations a bit
2011-09-25 01:16:58 -05:00
Christopher Eby
221e3857f3 Move clear button to the side of the search field; use different icon 2011-09-24 19:53:53 -05:00
Christopher Eby
6be7e4d69e Remove ControlButton 2011-09-24 18:16:51 -05:00
Christopher Eby
09135ac52d Used focused icons for hidden buttons in widgets 2011-09-24 17:50:02 -05:00
Christopher Eby
2894c2aca4 Add HDPI icons; new play/pause/next/previous buttons 2011-09-24 17:45:08 -05:00
Christopher Eby
370514a316 Add album shuffle 2011-09-23 23:33:06 -05:00
Christopher Eby
f194262c99 Don't shuffle songs unnecessarily 2011-09-23 21:56:13 -05:00
Christopher Eby
ef924a80b9 Make cover press/long-press actions configurable
Also don't update the swipe action preferences through the service. There's no
reason to do that; I'm not sure why I was doing so before...
2011-09-23 03:18:15 -05:00
Christopher Eby
1088ea67ee Make disable cover art affect widgets 2011-09-23 02:40:02 -05:00
Christopher Eby
5620d240b5 Add a default album art icon for the library controls
Mostly to prevent the need to shift the postion of the buttons back and forth
when changing between songs with/without cover art.
2011-09-23 02:23:24 -05:00