594 Commits

Author SHA1 Message Date
Christopher Eby
96dc1673f3 Translate individual strings rather than whole arrays
This makes it much easier to modify the arrays after they have been translated
2011-10-22 17:48:26 -05:00
Christopher Eby
ef5278fec4 Improve appearance with holo theme 2011-10-21 18:39:06 -05:00
Christopher Eby
6bc2aa0356 Target ICS; use Holo theme where available 2011-10-21 18:19:34 -05:00
Christopher Eby
2ce0386a7a Add context menu for shuffle/repeat buttons 2011-10-21 18:19:33 -05:00
Christopher Eby
7152a4e06c Remove some old translations 2011-10-21 18:19:32 -05:00
Christopher Eby
f7137e45e0 Make swipes easier to trigger 2011-10-21 18:19:31 -05:00
Christopher Eby
87514b4107 Use an enum for swipe actions 2011-10-21 18:19:30 -05:00
Christopher Eby
344017035c Add a way to enter random mode from the empty queue screen 2011-10-21 18:19:29 -05:00
Christopher Eby
61bb610ce3 Allow a specific shuffle/repeat mode to be set rather than force cycling
This is just plumbing for a future UI
2011-10-21 18:19:23 -05:00
Christopher Eby
601074c9cc Make repeat/shuffle buttons instead of menu items 2011-10-21 08:21:28 -05:00
Christopher Eby
c2646d0dc8 Improve the icons a bit 2011-10-21 08:07:32 -05:00
Christopher Eby
e44b10810d Restore default cover art in library behavior 2011-10-21 00:46:38 -05:00
Christopher Eby
c68874a981 Simplify code in CoverBitmap
Make createBitmap the only entry point
2011-10-20 23:36:12 -05:00
Christopher Eby
2149745f52 Prevent redundant cover work in CoverView
There were two main cases where we would generate covers: when querySongs is
called and when onSizeChanged is called. querySongs was sometimes called before
the initial layout had occured and the CoverView's size determined (usually
when the service had already been running when a new PlaybackActivity is
created). onSizeChanged was sometimes called before the service had been
initialized. Both of these cases are not useful, and in the former case,
harmful, since the default cover art could be shown when the view should have
been blank. So this removes generation in onSizeChanged except when querySongs
had been called before the layout occurs, which elminates the redundant cases.
2011-10-20 22:43:54 -05:00
Christopher Eby
1ae2958041 Clean-up Cache a bit
Just remove some unused stuff
2011-10-20 02:32:34 -05:00
Christopher Eby
a488764638 Remove cover cache 2011-10-20 02:12:43 -05:00
Christopher Eby
68a89314b2 Move elapsed time to left side of seek bar (or left above seek bar for alt mode) 2011-10-20 00:56:16 -05:00
Christopher Eby
34d108a1cc Use android style for notification text
On versions where this style doesn't exist (pre-Gingerbread), this defaults
to black text, which looks fine.
2011-10-20 00:12:31 -05:00
Christopher Eby
925d64ca6d Merge SongNotification into PlaybackService 2011-10-19 20:41:04 -05:00
Christopher Eby
ffe97ab254 Use onStartCommand instead of onStart
Forgot to update this when I made 2.0 required.
2011-10-19 00:28:25 -05:00
Christopher Eby
d78eb70bd7 Rename default.properties to project.properties for ADT 14 2011-10-19 00:26:22 -05:00
Christopher Eby
aaec10014a Restart activities on layout change rather than kill them 2011-10-18 20:53:33 -05:00
Christopher Eby
cd847f4a93 Add default cover for no info modes
The improves swiping: before, with no default cover, one just swiped a black
screen with no scrolling feedback, which was rather unintuitive.
2011-10-17 18:00:06 -05:00
Christopher Eby
bb39b8677e CoverView improvements
Cancel stale pending generate jobs---these can build up if skipping songs
rapidly. Avoid calling touch on worker thread---no advantage to doing so and
builds up jobs. Load songs in more optimal order (current, then next,
then previous).
2011-10-14 16:07:29 -05:00
Christopher Eby
518e16ffc4 Don't leak bitmaps for scale cover art mode
We were ignoring the bitmap that should have been recycled if unused.
2011-10-14 16:07:19 -05:00
Christopher Eby
c6b8efe2f4 Reorganize values into translatable/untranslatable 2011-10-13 18:42:27 -05:00
Christopher Eby
d9d47e276f Add disable lockscreen option 2011-10-13 17:48:59 -05:00
Christopher Eby
7f47b29073 Add random icon and genre icon 2011-10-11 23:32:09 -05:00
Christopher Eby
1bac719961 Add BackupManager support 2011-10-11 23:11:53 -05:00
Christopher Eby
3a5e506c6c Redraw CoverView when the generated bitmap is in the cache
postInvalidate was not being called in this case
2011-10-11 23:11:52 -05:00
Christopher Eby
2ad4e90cda Refactor PlaybackService start intents
It's a bit confusing as it is and was not properly playing for the autoplay intents
2011-10-11 23:11:38 -05:00
Christopher Eby
fb53c329bb Refactor MediaButtonHandler
Merge into MediaButtonReceiver, make static-only, avoid using reflection
2011-10-11 13:30:10 -05:00
Christopher Eby
556351df6c Some trivial clean-ups suggested by inspection 2011-10-11 12:58:10 -05:00
Christopher Eby
c09eadb951 Fix shuffle state cycling
Prevent the addition from overflowing
2011-10-11 02:11:16 -05:00
Christopher Eby
557649d7e5 Add Norwegian translation from Petter Sulwik 2011-10-07 14:17:03 -05:00
Christopher Eby
8e30ad605f Eliminate the useless layout for the message overlay 2011-10-04 02:02:35 -05:00
Christopher Eby
52377a86de Remove MiniPlaybackActivityLayout 2011-10-04 01:07:11 -05:00
Christopher Eby
fc3ce9f551 Use JUnit assert rather than assert keyword
These are turned on by default and can be compiled out entirely for release mode
2011-10-04 00:29:21 -05:00
Christopher Eby
fdcf44f36d Only run queries for the active tab in the library 2011-10-03 19:19:46 -05:00
Christopher Eby
de9793ca37 Cap user volume at 1.0
It seems that MediaPlayer.setVolume ignores anything greater.
2011-10-03 13:39:31 -05:00
Christopher Eby
af651e4aa5 Clear old data from flags when loading 2011-10-02 20:47:13 -05:00
Christopher Eby
f49d71f688 Use the correct sort order when using play all 2011-10-02 00:57:07 -05:00
Christopher Eby
fa1c9d23eb Ensure mExpanderPressed is accurate
It was not being set to false in the case where a non-header view was recycled
as a header view.
2011-10-02 00:46:22 -05:00
Christopher Eby
5a7e282a41 Remove untranslatable array and make overflowing tab text marquee 2011-09-29 13:34:50 -05:00
Pavol 'Scrool' Babincak
3a1d2f146f Slovak translation 2011-09-29 08:43:19 +02:00
Pavol 'Scrool' Babincak
1dbfd6471a Shorten long labels in tabs 2011-09-29 08:42:39 +02:00
Christopher Eby
a62659a917 Make service actions public and add play/pause actions 2011-09-27 18:24:14 -05:00
Christopher Eby
0938428514 Version 0.9.0
Just a test release
2011-09-27 02:07:38 -05:00
Christopher Eby
4a618c38ce Add play when headphones plugged option 2011-09-27 01:37:18 -05:00
Christopher Eby
78d471010d Add emulation of stock music player broadcast
This in the very least works with the CyanogenMod lockscreen controls.
2011-09-27 01:26:04 -05:00