375 Commits

Author SHA1 Message Date
Christopher Eby
cb013cc51e Integrate MediaView into MediaAdapter 2010-03-20 16:50:06 -05:00
Christopher Eby
9b7254cd5c Replace the stop service function with an exit function 2010-03-20 16:14:15 -05:00
Christopher Eby
cc953001b8 Set a foreground image instead of background image in the widget
This has proper scaling and can be set in RemoteViews. Curiously, it requires
that the transparent placeholder be the same size as the icon---the image size
doesn't seem to be updated when the drawable state changes
2010-03-20 15:24:16 -05:00
Christopher Eby
5fde2d3b82 Enable seeking while paused
I am not too sure why I had this disabled to begin with
2010-03-20 00:30:26 -05:00
Christopher Eby
7f3dd9544d Make updateState thread-safe 2010-03-19 23:54:06 -05:00
Christopher Eby
827a626895 Relocate scrobbling code 2010-03-19 10:27:45 -05:00
Christopher Eby
32ce1f7120 Update widget play/pause icon according to state 2010-03-18 20:19:53 -05:00
Christopher Eby
18f1f7b8a7 Initialize the widget even when the service is dead 2010-03-18 20:00:23 -05:00
Christopher Eby
eb88179297 Don't crash when the service is already disconnected and update state to allow reconnection 2010-03-18 19:59:06 -05:00
Christopher Eby
adde0a4e95 Split service state handling code into discrete class 2010-03-18 19:49:11 -05:00
Christopher Eby
11d175cb94 Listen for song change in AppWidgetProvider 2010-03-18 19:33:01 -05:00
Christopher Eby
4acc55f25b Convert MediaView into a single view 2010-03-18 08:42:56 -05:00
Christopher Eby
35181cc141 Ignore case in comparisons 2010-03-18 01:03:47 -05:00
Christopher Eby
dd0640fdb4 Avoid referencing issue 2010-03-18 01:00:26 -05:00
Christopher Eby
c41507ddbf Set right expander listener 2010-03-18 00:45:03 -05:00
Christopher Eby
cff0461931 Remove dead file 2010-03-18 00:42:31 -05:00
Christopher Eby
cc0320ba16 Split Song into Song and SongData 2010-03-18 00:38:49 -05:00
Christopher Eby
6bbd34952a Make limiters work again 2010-03-17 18:04:23 -05:00
Christopher Eby
ab543e3871 Combine stateChanged and songChanged events
In addition, move some of this event handling code into the
PlaybackServiceActivity superclass
2010-03-17 12:42:56 -05:00
Christopher Eby
fdc1a87301 Spin the notification off into its own class 2010-03-13 01:26:57 -06:00
Christopher Eby
7e05f88c4a Don't autoconnect to service if it was explicity stopped within the application 2010-03-12 23:42:26 -06:00
Christopher Eby
93d59aca7a Share connect service code 2010-03-12 23:23:35 -06:00
Christopher Eby
ca7fcd82c6 Long press back finish activity and disconnects from service 2010-03-12 22:45:19 -06:00
Christopher Eby
f1e7c0d425 Update the filter for all lists 2010-03-12 22:26:29 -06:00
Christopher Eby
1b1b83127c Defer to TabHost to retrieve MediaAdapters 2010-03-12 22:12:52 -06:00
Christopher Eby
ebcae9e507 Move limiters to their own layer 2010-03-11 20:29:40 -06:00
Christopher Eby
d955dd3fa6 Version 0.1 build 10 2010-03-11 02:33:49 -06:00
Christopher Eby
fa0376318d Scale the widget resolution 2010-03-11 02:08:48 -06:00
Christopher Eby
74664dbb2b Only empty the view on tab change
Previously it was done when removing a limiter which caused a brief flicker
2010-03-11 02:03:35 -06:00
Christopher Eby
03821bbae5 Avoid using getTag(id)
It's not in Android 1.5
2010-03-11 02:00:38 -06:00
Christopher Eby
6bf23b0237 Disable the media library menu item when there is no media 2010-03-11 01:29:09 -06:00
Christopher Eby
7c087cc6af Allow a limiter set by an expander to be removed 2010-03-11 01:04:30 -06:00
Christopher Eby
1d6ca04568 Add a "last used action" preference to the song selector 2010-03-10 23:48:43 -06:00
Christopher Eby
4a5bbb3582 Defer loading of artist adapter too 2010-03-10 23:38:23 -06:00
Christopher Eby
c204191049 Rename queue to media library 2010-03-10 23:21:00 -06:00
Christopher Eby
568c5be403 Consolidate the adapters into one MediaAdapter class 2010-03-10 23:04:49 -06:00
Christopher Eby
fe5ff05bad Create a custom layout for the song selector items
Makes the code nicer, speeds things a little, and allows text to be centered
better.

Also add a high DPI expander icon
2010-03-10 22:47:58 -06:00
Christopher Eby
e8f8ff3888 Don't crash with no songs present
I should really add an auto test for this..
2010-03-10 22:32:46 -06:00
Christopher Eby
a9d1941a46 Decrease the sample interval for the velocity tracker
Flings were made too sensitive with the resolution-independence change.
2010-03-10 02:16:43 -06:00
Christopher Eby
e3f0807a98 Removed (paused) from notification
The icon gives this information now, that's good enough
2010-03-10 02:13:28 -06:00
Christopher Eby
1e7f93b71f Increase the padding on the expander button 2010-03-10 01:33:02 -06:00
Christopher Eby
53ea3c4fe1 Make the arrow buttons filter media 2010-03-10 00:32:15 -06:00
Christopher Eby
d9d78b0ea5 Remove double tap ability in song selector in favor of a configurable single tap action 2010-03-09 23:44:14 -06:00
Christopher Eby
e86ca5dae5 Make the clear button work again
Not sure how I missed this..
2010-03-09 23:41:54 -06:00
Christopher Eby
1cc008181e Rework adapter setup
Moves Toast code into SongSelector and media field code into Song and builds
media intents in AbstractAdapter
2010-03-09 23:41:46 -06:00
Christopher Eby
da087bd3ac Hook up clicks on albums and artists 2010-03-09 21:28:23 -06:00
Christopher Eby
565c4a42cc Add a context menu for song items 2010-03-09 00:13:09 -06:00
Christopher Eby
2081783456 Change click actions in song selector
Single click now plays immediately. Double click enqueues.
2010-03-08 23:45:28 -06:00
Christopher Eby
958ffcc852 Respond to clicks on the expanders 2010-03-08 22:14:50 -06:00
Christopher Eby
03e11a5fee Unify ListView getView() code and add an expander icon to it 2010-03-08 21:29:44 -06:00