495 Commits

Author SHA1 Message Date
Christopher Eby
0f95ac6336 Volume always controls music volume 2011-09-19 21:52:11 -05:00
Christopher Eby
cce040ded8 Query all info for songs chosen from library 2011-09-19 21:51:58 -05:00
Christopher Eby
399631d4ad Update queue offset when changing songs 2011-09-18 09:28:01 -05:00
Christopher Eby
4ba2eddd80 Do less work when widgets are inactive 2011-09-18 09:28:01 -05:00
Christopher Eby
34624b00c3 Don't attempt to load songs when service is not loaded 2011-09-18 09:28:00 -05:00
Christopher Eby
25ce5d6daf Don't send bitmaps through a parcel; send Uri instead
This speeds things up quite a bit, but requires some reworking to the widget
layouts...
2011-09-18 09:28:00 -05:00
Christopher Eby
4311632dd5 Add back headset only feature 2011-09-18 09:28:00 -05:00
Christopher Eby
4191ba031f Require 2.0 2011-09-18 09:28:00 -05:00
Christopher Eby
0fd6230497 Show quantity of picked songs in toast 2011-09-18 09:28:00 -05:00
Christopher Eby
7621c9312e Only hold one wake lock 2011-09-18 09:27:23 -05:00
Christopher Eby
9471e2a0bc Handle PlaybackService.onCreate in one step 2011-09-17 03:02:46 -05:00
Christopher Eby
d37c151b02 Implement wait/notify properly 2011-09-17 03:02:46 -05:00
Christopher Eby
fdb3e0b238 Attempt to fix ever-lasting Toasts.
I'm not actually able to reproduce this issue, so I'm not certain of what the
cause might be. Apparently this can happen when Toasts aren't created on the
UI thread. I've attempted to mimimize that...
2011-09-17 03:02:46 -05:00
Christopher Eby
cb1221e00c Disable repeat option when there are no songs 2011-09-17 03:02:46 -05:00
Christopher Eby
cf776d40bb Store the current song in PlaybackService 2011-09-17 03:02:46 -05:00
Christopher Eby
a3aa6b4d6e Add swipe action to clear queue 2011-09-17 03:02:45 -05:00
Christopher Eby
8172618a09 Add swipe actions to enqueue songs 2011-09-17 03:02:45 -05:00
Christopher Eby
027489b4a1 Reset queue offset when using play items
Since we clear the queue, we must also clear the offset..
2011-09-17 03:02:45 -05:00
Christopher Eby
744432a744 Don't call startService to pick songs from library 2011-09-17 03:02:40 -05:00
Christopher Eby
06915f6cf7 Add serialVersionUID to MediaAdapter.Limiter
I don't know that this is strictly necessary since the serialization is only
ever saved in memory, but Eclipse wants it.
2011-09-07 02:25:46 -05:00
Christopher Eby
53e40f85f2 Fix random cache shuffling when it is not completely full
We were shuffling around the null elements
2011-09-06 00:33:48 -05:00
Christopher Eby
b8c137310a Make widget double tap setting global 2011-09-05 16:02:07 -05:00
Christopher Eby
4abbbfd6f3 Clear mPendingSeek 2011-09-03 13:59:48 -05:00
Christopher Eby
3f99f98a56 Add configurable up/down swipe actions
More actions to come...
2011-09-03 00:31:55 -05:00
Christopher Eby
9bc3e97e9d Properly initialize mCurrentAdapter 2011-09-02 02:40:39 -05:00
Christopher Eby
605e14f930 Account for sorting that takes place when querying random songs 2011-09-02 02:36:49 -05:00
Christopher Eby
d0ee5e8676 Load saved song position 2011-09-02 02:34:28 -05:00
Christopher Eby
8617a7c7c6 Update track progress when play pressed 2011-09-02 01:06:13 -05:00
Christopher Eby
283a53e4db Fix PlaybackService.onDestroy
Pausing in onDestroy was broadcasting an update which would
cause receivers to restart the service and/or crash.
2011-09-02 00:41:17 -05:00
Christopher Eby
7c00dc4496 Tweak inverted notification
Use American English, clarify description, simplify code a bit, and
default to disabled.
2011-08-31 21:30:57 -05:00
Jean-Baptiste Lab
e7ea4941ea Add option to invert colours in notifications 2011-08-31 21:18:45 -05:00
David Beswick
91094a85ab Mandated Java 1.6 so that the @Override annotation can be used
with interface overrides.
2011-08-30 22:24:15 -05:00
Christopher Eby
76b6fe134d Add widget display mode without zoomed cover art
This changes the id for the zoomed mode, just for consistency. Since this
feature hasn't been released yet that should be ok.
2011-08-30 18:44:36 -05:00
Christopher Eby
339a9fcf85 Make media button play/pause pause immediately.
It provides a faster response and there isn't any reason not to---a double
click will restart playback.
2011-08-30 01:53:50 -05:00
Christopher Eby
69bbfbb255 Run playback activity song/state change methods on UI thread
This allows CoverView and song info views to be updated in one go, rather than
in multiple posts to the UI thread.
2011-08-30 01:35:18 -05:00
Christopher Eby
cc1a5cb448 Handle notifications better
Don't update them when unecessary. Fix an edge case where the notification
wouldn't update from the paused to playing style.
2011-08-29 01:38:25 -05:00
Christopher Eby
a4ea3089f6 Move media button registration into MediaButtonHandler; only register when media buttons are enabled 2011-08-29 01:37:41 -05:00
Christopher Eby
fa63a36bbc Fix purge 2011-08-29 01:37:16 -05:00
Christopher Eby
f0abd282cc Fix the long press fix
Hmm...
2011-08-29 01:37:07 -05:00
Christopher Eby
07c29406e2 Handle text alignment in TextView rather than the layout
This allows the alignment to be updated immediately instead of in the background
2011-08-29 01:36:51 -05:00
Christopher Eby
13e30746ed Restructure play/pause and song change to update UI immediately
PlaybackService methods return the new song or state immediately, the calling
Activity updates with the result, the rest of the work is done in the
background, and inactive activities update with the broadcast.

Previously, everything was done in the background and the UI did
not update until the work was done and the update was broadcast, which took
forever.
2011-08-29 01:36:37 -05:00
Christopher Eby
7336b69e08 Fix duration improvement again 2011-08-28 04:56:57 -05:00
Christopher Eby
3c76f4359f Fix duration improvement 2011-08-28 04:36:01 -05:00
Christopher Eby
6ea6688a27 Fix dpad navigation.
Call super and update CoverView immediately
2011-08-28 04:34:15 -05:00
David Beswick
a2d8710ae8 Added ability to navigate songs by moving left and right on the dpad
when play controls are focused. Preference to come later.
2011-08-28 04:26:07 -05:00
Christopher Eby
df570d507c Use song duration data from MediaStore
Allows the duration to be displayed before the song starts playing.

Also add a missing synchronized around a call to wait()
2011-08-28 04:18:16 -05:00
Christopher Eby
b038af1ba2 Remove dead code 2011-08-28 03:29:10 -05:00
Christopher Eby
17ea717535 Update proguard.config 2011-08-28 03:28:35 -05:00
Christopher Eby
7bbe6184e9 Cleanup updateState()
Changes are mostly aesthetic. Was annoyed by the long conditionals.
2011-08-28 02:45:21 -05:00
Christopher Eby
83cdef201f Persist the visibility of the controls 2011-08-28 02:11:28 -05:00