Commit Graph
1528 Commits
Author SHA1 Message Date
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
Christopher Eby 238beaaef6 Combine code to handle playback control buttons 2010-04-04 10:10:39 -05:00
Christopher Eby 6753a30877 Add vertical padding to the seek bar 2010-04-04 01:06:04 -05:00
Christopher Eby 9e8bc71904 Allow the song info to be shown below the cover instead of on top of it
The complexity of the cover view drawing routines is getting a bit ridiculous..
2010-04-04 01:01:24 -05:00
Christopher Eby 124780de98 Make sure we are actually starting up in onCreate
Not just changing configurations
2010-04-03 23:14:55 -05:00
Christopher Eby 85876e1b0f Set a title in the song selector context menu 2010-04-03 23:14:55 -05:00
Christopher Eby e08a39cacf Update the readme 2010-04-03 20:13:47 -05:00
Christopher Eby 9298542e7c Further organize strings 2010-04-03 17:50:31 -05:00
Christopher Eby 4957916360 Add preference to open song selector on startup 2010-04-03 17:49:00 -05:00
Christopher Eby 0ab6b3e6c9 Reword the mini player preference 2010-04-03 17:29:52 -05:00
Christopher Eby e94cf2b443 Organize translatable strings 2010-04-03 17:24:22 -05:00