304 Commits

Author SHA1 Message Date
Christopher Eby
0409d707b4 Swap library / display mode menu items
Makes position consistent with those in song selector
2010-04-15 22:31:58 -05:00
Christopher Eby
d4b38f4491 Search button toggles song selector on/off 2010-04-15 22:31:08 -05:00
Christopher Eby
fe335aa90a Don't dismiss the dialog on back press in selector-on-startup mode 2010-04-15 22:29:59 -05:00
Christopher Eby
1c4c65890c Use an alternative method to fetch cover art
This seems to allow the MediaStore to generate the thumbnails for cover art if
they do not exist yet.

Is this documented anywhere..?
2010-04-13 23:26:18 -05:00
Christopher Eby
78122cc4c2 Remove some unused imports 2010-04-13 22:38:36 -05:00
Christopher Eby
809192ab4f Fix crasher 2010-04-12 23:45:51 -05:00
Christopher Eby
38fb7abafd Sort a little better for SongMediaAdapter songs 2010-04-12 23:17:58 -05:00
Christopher Eby
93f0873b64 Sort a little better for chosen songs 2010-04-12 23:17:02 -05:00
Christopher Eby
e2889d3d25 Add controls in the song selector
This is somewhat hackish.
2010-04-12 23:11:06 -05:00
Christopher Eby
7049755021 Reorder the menu
Keeps things more consistent
2010-04-12 21:38:17 -05:00
Christopher Eby
0776b1e08b Save repeat and shuffle states 2010-04-12 21:35:58 -05:00
Christopher Eby
23cadc916e Don't remove the repeat start song 2010-04-12 19:41:06 -05:00
Christopher Eby
23bda5a16d Update the previous cover when repeating 2010-04-12 19:39:54 -05:00
Christopher Eby
eb74963785 Store mRepeatStart as a position rather than a pointer 2010-04-12 19:14:51 -05:00
Christopher Eby
478c732673 Enabling shuffle shuffles repeated songs 2010-04-12 18:53:12 -05:00
Christopher Eby
2fd9a69898 Add more file types to .gitignore 2010-04-12 17:14:04 -05:00
Christopher Eby
c3ce56fc0c Center the expander in its cut-out
It seems to look a little nicer
2010-04-12 17:11:37 -05:00
Christopher Eby
7f0566eb8f Update prefs in SongSelector in all cases
Including when we return from the prefs activity
2010-04-11 19:41:42 -05:00
Christopher Eby
af213a1a30 Reset the queue position when the song selector opens
This is what the old behavior did
2010-04-11 19:26:21 -05:00
Christopher Eby
acfc656cb9 Don't preserve timelien items after the chosen songs 2010-04-11 19:15:56 -05:00
Christopher Eby
d08344a44c Remove the need for accessors in SongSelector 2010-04-11 18:59:33 -05:00
Christopher Eby
557b2aa2b6 Rename mCurrentSong to mTimelinePos 2010-04-11 18:59:30 -05:00
Christopher Eby
7f6523a8ba Don't subclass Handler where possible 2010-04-11 18:42:09 -05:00
Christopher Eby
848669aea8 Make some private members in PlaybackService package-protected
Removes the need for some accessors
2010-04-11 18:23:43 -05:00
Christopher Eby
49aaae4269 Keep track of the timeline pos in CoverView
This way we don't cause funkiness when we store covers due to repeat that don't
correspond to a timeline position
2010-04-11 18:09:01 -05:00
Christopher Eby
a13f7a7107 Save song flags in state 2010-04-11 17:46:46 -05:00
Christopher Eby
635d378c59 Repeat option 2010-04-11 15:12:08 -05:00
Christopher Eby
5f856b6148 Share menu code between FullPlaybackActivity and SongSelector
This allows SongSelector to have a shuffle menu item
2010-04-11 10:44:53 -05:00
Christopher Eby
003014945a Add shuffle option 2010-04-11 10:26:42 -05:00
Christopher Eby
95fcbaff32 Add ids to array in order in getAllSongIdsWith 2010-04-11 00:27:32 -05:00
Christopher Eby
b98b107499 Combine getAllSongIds and getAllSongsIdsWith 2010-04-11 00:22:06 -05:00
Christopher Eby
f69001aa46 Move DO_ITEM into its own method 2010-04-10 23:39:34 -05:00
Christopher Eby
9a557eeefe Remove getList 2010-04-10 23:29:29 -05:00
Christopher Eby
1a5b3cec6f Add an options menu to SongSelector 2010-04-10 23:23:02 -05:00
Christopher Eby
6423e27fde Don't crash when pressing the expander area when there are no expanders
It's bad
2010-04-10 22:24:13 -05:00
Christopher Eby
14606ce033 Change the separator line from a gradient-colored to dashed
Meshes better with the divider gradient, methinks
2010-04-10 22:17:53 -05:00
Christopher Eby
99896331f5 Draw the gradient line for the list dividers too 2010-04-10 22:08:58 -05:00
Christopher Eby
b659888479 Add a separator between the expander and the title in MediaView
Some people don't seem to grok that it is a second place to press. Maybe this
will make it more obvious?
2010-04-10 21:57:54 -05:00
Christopher Eby
ca315803a4 Store icons as raw bitmaps in CoverView 2010-04-10 21:21:31 -05:00
Christopher Eby
f17661f161 Reuse Paint in MediaView 2010-04-10 16:09:41 -05:00
Christopher Eby
5a08592a92 Move broadcastSongChange into updateState 2010-04-10 15:36:55 -05:00
Christopher Eby
2b9b5ee742 Optimize MediaAdapter.MediaView
Remove floating-point math and eliminate the need for implicit accessor methods.
2010-04-10 14:13:16 -05:00
Christopher Eby
d8bd109338 Optimize CoverView
Minimize floating point operations and memory allocations. Remove some redundant
code.
2010-04-10 13:52:43 -05:00
Christopher Eby
a4951e856a Save the display mode pref immediately after it changes 2010-04-09 22:08:58 -05:00
Christopher Eby
605632f547 Disable the media button controls when in a call 2010-04-08 14:52:14 -05:00
Christopher Eby
9a982a709e Don't break the back button
It's bad news
2010-04-08 14:36:04 -05:00
Christopher Eby
aaf110cb1d Simplify initial cover art load
We now load the state in Service onCreate so that the first song will always
be ready when CoverView is initialized. This makes the code somewhat simpler.
2010-04-08 14:30:48 -05:00
Christopher Eby
a950805ee6 Update OneCellWidget intent receiver
newState -> state
2010-04-08 14:27:28 -05:00
Christopher Eby
c2f58b04b3 Create the Handler in PlaybackService as soon as possible 2010-04-08 14:26:49 -05:00
Christopher Eby
80a6cbd201 Handle the media buttons inside the service
It seems to be faster and cheaper to do this. External receiver is still
necessary to fire up the service however.
2010-04-07 22:26:08 -05:00