2236 Commits

Author SHA1 Message Date
Christopher Eby
69251f2aa6 Keep the notification around even after pausing 2010-02-21 00:29:10 -06:00
Christopher Eby
d1be1d80cc Add a mini-player
This will open in response to clicks on the notification. It provides
a quick way to change a song or pause music. (Mainly it just looks legit)
2010-02-21 00:08:47 -06:00
Christopher Eby
ddb0193d65 Only make the CoverView bitmaps as large as they need to be 2010-02-20 14:42:39 -06:00
Christopher Eby
377984afaf Omit a bogus paramter to drawBitmap
It is unnecessary, wrong and causes problems if the bitmap needs to be scaled down
2010-02-20 14:08:31 -06:00
Christopher Eby
d7f3eaa442 Allow STATE_NO_MEDIA to be unset 2010-02-20 01:52:52 -06:00
Christopher Eby
8c499cdff2 Don't pause playback when the headset is plugged in 2010-02-20 00:31:08 -06:00
Christopher Eby
af2b7244c9 Try to re-retrieve the songs when we should 2010-02-20 00:29:18 -06:00
Christopher Eby
331add9d22 Don't hide controls when paused 2010-02-19 22:32:36 -06:00
Christopher Eby
23d1b1fab9 Postpone play/pause work 2010-02-19 22:28:57 -06:00
Christopher Eby
4945c9c47b Disable seek bar when paused 2010-02-19 22:23:38 -06:00
Christopher Eby
6123a81dfa Query duration on startup 2010-02-19 22:19:56 -06:00
Christopher Eby
52013ce482 Simplify song change handling
This fixes some issues with thread safety
2010-02-19 22:14:38 -06:00
Christopher Eby
ee5f907d3f Don't call setState on startup
There is no advantage to doing so right now
2010-02-19 21:09:38 -06:00
Christopher Eby
e82b167485 Add horizontal margin to the outer edges of the lower controls 2010-02-19 20:59:19 -06:00
Christopher Eby
458c1e29cd Always show the play/pause button when paused 2010-02-19 20:54:56 -06:00
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