167 Commits

Author SHA1 Message Date
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
Christopher Eby
b767e4eca8 Share filter code and use SparseArray instead of HashMap 2010-03-08 19:18:17 -06:00
Christopher Eby
3410917239 Hook up the filter to all listviews 2010-03-08 03:20:26 -06:00
Christopher Eby
ef64a330a0 Delay initialization of the invisible ListViews 2010-03-08 03:12:23 -06:00
Christopher Eby
4b5d43cced Show lists for all song selector tabs 2010-03-08 03:05:03 -06:00
Christopher Eby
12af3135f2 Initialize the widget sooner on startup 2010-03-08 01:51:40 -06:00
Christopher Eby
ed670a73e3 Don't crash with an invalid state 2010-03-08 01:45:05 -06:00
Christopher Eby
f108489413 Make song item view larger 2010-03-08 00:41:09 -06:00
Christopher Eby
d66f5dae08 Make filter more flexible
Now allows words to match out of order and restores searching in album and
artist fields
2010-03-08 00:05:19 -06:00