21 Commits

Author SHA1 Message Date
Christopher Eby
6261a07479 Set a solid background on the error message 2010-02-19 20:50:06 -06:00
Christopher Eby
229f220eef Don't restart playback when the headset is plugged in
This matches the behavior of other music players for Android.
2010-02-19 20:38:33 -06:00
Christopher Eby
429aa68350 Make the position code work
Now we just request position from the service each time we update it.
This is somewhat more reliable and simple. The optimization the old
method provided was not worthwhile.
2010-02-19 20:36:22 -06:00
Christopher Eby
b56fc0eeb0 Don't delay initialization of current song 2010-02-19 19:55:54 -06:00
Christopher Eby
3220ee32be Remove windows line-endings 2010-02-19 19:37:33 -06:00
Christopher Eby
41dc843dcc Update the duration even when paused
This gets a little hacky. It might be worthwhile to look into a different
solution.
2010-02-19 18:58:16 -06:00
Christopher Eby
c1324ff366 Don't start playback on startup 2010-02-19 18:50:40 -06:00
Christopher Eby
e96ec2b2a6 Remove the timeout on mWakeLock acquisition
It seems to be causing problems. It _should_ always be released anyway.
2010-02-19 18:30:47 -06:00
Christopher Eby
c7ed2d81b4 Sanity checks for mWakeLock 2010-02-19 18:27:39 -06:00
Christopher Eby
5e4e036e5c Toggle controls on click rather than only show them 2010-02-19 18:26:53 -06:00
Christopher Eby
4c3e139802 Maintain a partial wake lock in MusicPlayer
Previously the CPU might shut down after a song finished playing.
This meant no more music. A wake lock prevents this.
2010-02-19 18:19:30 -06:00
Christopher Eby
3d2c8029fe Route track changing through the Handler in MusicPlayer 2010-02-19 18:10:39 -06:00
Christopher Eby
30090590a4 Use padding rather than margin on the seek bar
This avoids cutting off the edge of the thumb bar
2010-02-19 18:06:51 -06:00
Christopher Eby
e5ea1dce2b Focus play/pause button when showing controls 2010-02-19 18:05:45 -06:00
Christopher Eby
79da5a15bd Reset control hide delay when a control is focused 2010-02-19 18:03:17 -06:00
Christopher Eby
e82838087d Split controls into top and bottom parts 2010-02-19 18:00:04 -06:00
Christopher Eby
b60404a950 Rework the media controls, adding a seek bar
The media controls now appear after clicking on the cover view and disppear
after a period of inactivity. The previous and next menu entries have been
removed in favor of the previous and next buttons and the media control view.
2010-02-15 22:44:28 -06:00
Christopher Eby
608a0316cc Enable scroll thumb in song selector 2010-02-15 11:35:52 -06:00
Christopher Eby
09dd24a144 Remove unused handler for back button 2010-02-15 11:35:37 -06:00
Christopher Eby
efa51536b6 Notify the user when something has been enqueued 2010-02-15 10:09:07 -06:00
Christopher Eby
5e4244a95d Import version 1.0 2010-02-15 09:51:10 -06:00