106 Commits

Author SHA1 Message Date
Christopher Eby
e37d3d149d Ensure the notification is canceled when persistence is disabled
startForeground will keep a hold on the notification passed to it.
It seems that stopForeground is the only way to cancel the notification
then
2010-03-06 14:45:33 -06:00
Christopher Eby
00aedee9ad Change the status icon when paused 2010-03-06 14:16:51 -06:00
Christopher Eby
1cb8c398ce Try to get headset detection working
Why is this so difficult?
2010-03-06 11:41:55 -06:00
Christopher Eby
2d6ded0693 Make song changing more responsive 2010-03-06 10:07:48 -06:00
Christopher Eby
21f23eb4e5 Add icons for kill and fullscreen buttons in the mini player 2010-03-05 23:47:53 -06:00
Christopher Eby
32fd8ea975 Disable filter suggestions by default and a preference to enable them 2010-03-04 20:40:49 -06:00
Christopher Eby
2dee7b190c Restore the option to use a phone dialpad 2010-03-03 23:25:16 -06:00
Christopher Eby
ce1df6f732 Rework song selector filter
Now simply uses the virtual keyboard
2010-03-03 23:00:46 -06:00
Christopher Eby
ada3acacab Cleanup state changing/song changing
Much of the code can be combined
2010-03-03 19:10:21 -06:00
Christopher Eby
1c7a4aa7c3 Add some debugging output
There seems to be an occasional crash when change the external output only preference. Needs investigating
2010-03-03 17:48:22 -06:00
Christopher Eby
b2c7609cc3 Initialize mNotificationManager where it is needed 2010-03-03 15:23:23 -06:00
Christopher Eby
adf1ca18f2 Version 0.1 build 9 2010-03-01 21:50:23 -06:00
Christopher Eby
cef1c1b4e1 Reword headset_only preference, again 2010-03-01 21:48:53 -06:00
Christopher Eby
5d38771c5d Delay loaded() call a little
Now called when it should be more reasonable to switch songs
2010-03-01 21:23:56 -06:00
Christopher Eby
c7e01fc0fe Get external output detection working a little better 2010-03-01 21:19:37 -06:00
Christopher Eby
8854996bcb Prevent CoverView interaction before all covers are loaded 2010-03-01 19:29:19 -06:00
Christopher Eby
064ecf3904 Take advantage of the early cover broadcast 2010-03-01 19:23:17 -06:00
Christopher Eby
601d9e70e1 Broadcast song change even earlier 2010-03-01 17:49:34 -06:00
Christopher Eby
258972ad26 Unify some code 2010-03-01 17:49:34 -06:00
Christopher Eby
5aa70084de Defer cover shifting work in CoverView
This update the control buttons immediately instead of after a noticable delay
2010-03-01 17:49:34 -06:00
Christopher Eby
c4ec07080f Remove dead code 2010-03-01 17:49:33 -06:00
Christopher Eby
d3a31b3560 Reword headset_only pref 2010-03-01 17:45:45 -06:00
Christopher Eby
99868d920e Don't cause track change badness 2010-02-28 21:47:39 -06:00
Christopher Eby
06cb7d96a3 Add null check 2010-02-28 21:37:46 -06:00
Christopher Eby
bfab1d92a7 Version 0.1 build 7 2010-02-28 19:57:23 -06:00
Christopher Eby
9758c3b50f Unify code for widget next/pause 2010-02-28 19:53:04 -06:00
Christopher Eby
3cb3bcf300 Synchronize on mSongTimeline instead of a dedicated object 2010-02-28 19:48:52 -06:00
Christopher Eby
38a2c43e73 Update cover earlier in CoverView shiftCover
Now that the RemoteException is handled properly we can reorganize this method
to provide a nice boost to responsiveness
2010-02-28 19:46:25 -06:00
Christopher Eby
772df6acc6 Handle dead service in CoverView 2010-02-28 19:43:08 -06:00
Christopher Eby
079221eafb Unify next/previous in CoverView 2010-02-28 19:38:37 -06:00
Christopher Eby
67dc10a84b Simplify Handler in CoverView 2010-02-28 19:00:04 -06:00
Christopher Eby
cf62a8ebc4 Avoid calling getDuration/getPosition when MediaPlayer doesn't want us to 2010-02-28 18:54:58 -06:00
Christopher Eby
fad23d11bc Switch songs synchronously in PlaybackService
Async was causing CoverView to receive the wrong covers in some cases.
2010-02-28 18:42:36 -06:00
Christopher Eby
94ede3a73b Version 0.1 build 6 2010-02-28 17:36:29 -06:00
Christopher Eby
7b217004bb Save state across service instances 2010-02-28 17:16:19 -06:00
Christopher Eby
2a31946f67 Safer thread synchronization for song timeline 2010-02-28 16:48:29 -06:00
Christopher Eby
093da1c9e7 Initialize mQueuePos to 0 2010-02-28 16:45:42 -06:00
Christopher Eby
bccc23c59b Update CoverViews sooner
So it feels faster
2010-02-27 23:11:55 -06:00
Christopher Eby
27f69927db Make PlaybackService's Handler non-anonymous 2010-02-27 22:39:11 -06:00
Christopher Eby
24f850e539 Organize preferences 2010-02-27 22:35:54 -06:00
Christopher Eby
a857fad462 Add a setting to control headset unplug detection 2010-02-27 22:29:33 -06:00
Christopher Eby
cddfb03627 Expand and improve headset detection
Modify it to mean play through anything but the internal speaker. Should now detect bluetooth and other sinks.

I have not tested this on Android 2.0+. I hope it works...
2010-02-27 22:20:43 -06:00
Christopher Eby
a456aa8c04 Allow the widget to start the music service 2010-02-26 23:55:03 -06:00
Christopher Eby
1a259e714a Add a copy of the GPL
This was left out of the license commit
2010-02-26 23:44:34 -06:00
Christopher Eby
9db1789e3d Generate tinted control buttons on-the-fly 2010-02-26 23:43:49 -06:00
Christopher Eby
dc0639784e Add a 1x1 cell widget
Larger sizes are to come
2010-02-26 23:21:46 -06:00
Christopher Eby
21d5fafa74 Fix crash with no songs on device 2010-02-25 23:15:55 -06:00
Christopher Eby
9530cffaa6 Add a readme 2010-02-25 21:59:21 -06:00
Christopher Eby
7646c1c326 License under GPLv3+ 2010-02-25 20:46:27 -06:00
Christopher Eby
5fa74e1f18 Better defer cover loading 2010-02-24 23:16:50 -06:00