288 Commits

Author SHA1 Message Date
Christopher Eby
c3ce56fc0c Center the expander in its cut-out
It seems to look a little nicer
2010-04-12 17:11:37 -05:00
Christopher Eby
7f0566eb8f Update prefs in SongSelector in all cases
Including when we return from the prefs activity
2010-04-11 19:41:42 -05:00
Christopher Eby
af213a1a30 Reset the queue position when the song selector opens
This is what the old behavior did
2010-04-11 19:26:21 -05:00
Christopher Eby
acfc656cb9 Don't preserve timelien items after the chosen songs 2010-04-11 19:15:56 -05:00
Christopher Eby
d08344a44c Remove the need for accessors in SongSelector 2010-04-11 18:59:33 -05:00
Christopher Eby
557b2aa2b6 Rename mCurrentSong to mTimelinePos 2010-04-11 18:59:30 -05:00
Christopher Eby
7f6523a8ba Don't subclass Handler where possible 2010-04-11 18:42:09 -05:00
Christopher Eby
848669aea8 Make some private members in PlaybackService package-protected
Removes the need for some accessors
2010-04-11 18:23:43 -05:00
Christopher Eby
49aaae4269 Keep track of the timeline pos in CoverView
This way we don't cause funkiness when we store covers due to repeat that don't
correspond to a timeline position
2010-04-11 18:09:01 -05:00
Christopher Eby
a13f7a7107 Save song flags in state 2010-04-11 17:46:46 -05:00
Christopher Eby
635d378c59 Repeat option 2010-04-11 15:12:08 -05:00
Christopher Eby
5f856b6148 Share menu code between FullPlaybackActivity and SongSelector
This allows SongSelector to have a shuffle menu item
2010-04-11 10:44:53 -05:00
Christopher Eby
003014945a Add shuffle option 2010-04-11 10:26:42 -05:00
Christopher Eby
95fcbaff32 Add ids to array in order in getAllSongIdsWith 2010-04-11 00:27:32 -05:00
Christopher Eby
b98b107499 Combine getAllSongIds and getAllSongsIdsWith 2010-04-11 00:22:06 -05:00
Christopher Eby
f69001aa46 Move DO_ITEM into its own method 2010-04-10 23:39:34 -05:00
Christopher Eby
9a557eeefe Remove getList 2010-04-10 23:29:29 -05:00
Christopher Eby
1a5b3cec6f Add an options menu to SongSelector 2010-04-10 23:23:02 -05:00
Christopher Eby
6423e27fde Don't crash when pressing the expander area when there are no expanders
It's bad
2010-04-10 22:24:13 -05:00
Christopher Eby
14606ce033 Change the separator line from a gradient-colored to dashed
Meshes better with the divider gradient, methinks
2010-04-10 22:17:53 -05:00
Christopher Eby
99896331f5 Draw the gradient line for the list dividers too 2010-04-10 22:08:58 -05:00
Christopher Eby
b659888479 Add a separator between the expander and the title in MediaView
Some people don't seem to grok that it is a second place to press. Maybe this
will make it more obvious?
2010-04-10 21:57:54 -05:00
Christopher Eby
ca315803a4 Store icons as raw bitmaps in CoverView 2010-04-10 21:21:31 -05:00
Christopher Eby
f17661f161 Reuse Paint in MediaView 2010-04-10 16:09:41 -05:00
Christopher Eby
5a08592a92 Move broadcastSongChange into updateState 2010-04-10 15:36:55 -05:00
Christopher Eby
2b9b5ee742 Optimize MediaAdapter.MediaView
Remove floating-point math and eliminate the need for implicit accessor methods.
2010-04-10 14:13:16 -05:00
Christopher Eby
d8bd109338 Optimize CoverView
Minimize floating point operations and memory allocations. Remove some redundant
code.
2010-04-10 13:52:43 -05:00
Christopher Eby
a4951e856a Save the display mode pref immediately after it changes 2010-04-09 22:08:58 -05:00
Christopher Eby
605632f547 Disable the media button controls when in a call 2010-04-08 14:52:14 -05:00
Christopher Eby
9a982a709e Don't break the back button
It's bad news
2010-04-08 14:36:04 -05:00
Christopher Eby
aaf110cb1d Simplify initial cover art load
We now load the state in Service onCreate so that the first song will always
be ready when CoverView is initialized. This makes the code somewhat simpler.
2010-04-08 14:30:48 -05:00
Christopher Eby
a950805ee6 Update OneCellWidget intent receiver
newState -> state
2010-04-08 14:27:28 -05:00
Christopher Eby
c2f58b04b3 Create the Handler in PlaybackService as soon as possible 2010-04-08 14:26:49 -05:00
Christopher Eby
80a6cbd201 Handle the media buttons inside the service
It seems to be faster and cheaper to do this. External receiver is still
necessary to fire up the service however.
2010-04-07 22:26:08 -05:00
Christopher Eby
fe3cfe8bc6 Automatically play when using the headset control advance 2010-04-06 00:18:25 -05:00
Christopher Eby
d95f9cf81d Add a preference for the headset button 2010-04-05 23:05:49 -05:00
Christopher Eby
20d624c793 Add a previous song action
This is completely untested :)
2010-04-05 22:54:23 -05:00
Christopher Eby
ac952a64f2 Make the double click functionality of the media control actions optional 2010-04-05 22:54:20 -05:00
Christopher Eby
998b82a469 Preload the media button receiver
It has a somewhat noticable initialization delay
2010-04-05 22:54:17 -05:00
Christopher Eby
368e04c7ad Make MediaButtonReceiver follow code style and remove long press for now 2010-04-05 22:54:12 -05:00
magnus anderssen
4d7a618d6c Added headset button handling 2010-04-05 18:18:54 -05:00
Christopher Eby
19cec7b0b6 Add a null pointer check for mMediaPlayer
It can happen...
2010-04-05 17:20:28 -05:00
Christopher Eby
87585922f2 Add a volume setting
This provides a complement to the system media volume, providing more
fine-grained control
2010-04-04 20:58:27 -05:00
Christopher Eby
1b862cc392 Improve the initial state handling
Now actually notices when the state is uninitialized and updates the state
properly
2010-04-04 15:34:24 -05:00
Christopher Eby
d38a778b14 Defer creation of a few utility classes in PlaybackService 2010-04-04 15:25:14 -05:00
Christopher Eby
4e61388fa8 Implement similar graceful no media handling in song selector
Songs disappear when the sd card is unmounted and reappear when it is remounted
2010-04-04 15:17:52 -05:00
Christopher Eby
bdb93df55f Handle loss of media gracefully
When the sd card is unmounted, the song will immediately stop and the no media
message will appear. The message will now automatically go away when media is
available
2010-04-04 14:44:30 -05:00
Christopher Eby
ce7c5000db Reorganize PlaybackService
The old organization reflected a mystical thread barrier that does not really
exist. The new organization is more typical of the other classes
2010-04-04 10:40:40 -05:00
Christopher Eby
8231667d19 Don't disable the library menu entry when there are no songs 2010-04-04 10:20:16 -05:00
Christopher Eby
95b94f5921 Set the no media flag in setCurrentSong rather than in getSong
Avoids an infinite loop on startup with no media
2010-04-04 10:16:45 -05:00