957 Commits

Author SHA1 Message Date
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
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
a62659a917 Make service actions public and add play/pause actions 2011-09-27 18:24:14 -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
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
6be7e4d69e Remove ControlButton 2011-09-24 18:16:51 -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
Christopher Eby
268a537969 Don't use TabHost 2011-09-23 01:06:16 -05:00
Christopher Eby
b842b7e46f Share layout content between library with/without control layouts.
Also make search box not overlap.
2011-09-22 15:29:53 -05:00
Christopher Eby
84f0e02882 Add repeat current song mode 2011-09-21 22:23:47 -05:00
Christopher Eby
5341772d0c Move state file code to PlaybackService and add a version code to state file 2011-09-21 22:23:46 -05:00
Christopher Eby
48e2aa1d91 Shuffle current songs when enabling shuffling 2011-09-21 22:23:45 -05:00
Christopher Eby
8e83d85a59 Rename SongSelector to LibraryActivity 2011-09-21 22:23:44 -05:00
Christopher Eby
eb7930543c Remove playlist instances 2011-09-21 22:23:43 -05:00
Christopher Eby
f524be7199 Add a play all row 2011-09-21 22:23:43 -05:00
Christopher Eby
690789273b Run MediaStore queries on background thread 2011-09-21 22:23:42 -05:00
Christopher Eby
95a7a32e35 Separate MediaView from MediaAdapter 2011-09-21 22:23:36 -05:00
Christopher Eby
e94c40bdcb Remove SongMediaAdapter 2011-09-21 16:26:41 -05:00
Christopher Eby
0f38aa4159 Add library section indexer 2011-09-21 16:25:26 -05:00
Christopher Eby
0cb2b325d3 Use separate layouts for library with/without controls 2011-09-21 16:23:58 -05:00
Christopher Eby
4ad42c7285 Move random song code into MediaUtils 2011-09-21 16:23:58 -05:00
Christopher Eby
af069c208b Run library queries on worker thread 2011-09-21 16:23:51 -05:00
Christopher Eby
e23598aef1 Start playback when using play action from library 2011-09-19 22:13:11 -05:00
Christopher Eby
2023409bd9 Remove ContextApplication 2011-09-19 22:13:09 -05:00
Christopher Eby
5837753b4a Eliminate Song.query; always query populated songs instead 2011-09-19 22:13:08 -05:00