Commit Graph
270 Commits
Author SHA1 Message Date
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
Christopher Eby fe3cfe8bc6 Automatically play when using the headset control advance 2010-04-06 00:18:25 -05:00
Christopher Eby d95f9cf81d Add a preference for the headset button 2010-04-05 23:05:49 -05:00
Christopher Eby 20d624c793 Add a previous song action
This is completely untested :)
2010-04-05 22:54:23 -05:00
Christopher Eby ac952a64f2 Make the double click functionality of the media control actions optional 2010-04-05 22:54:20 -05:00
Christopher Eby 998b82a469 Preload the media button receiver
It has a somewhat noticable initialization delay
2010-04-05 22:54:17 -05:00
Christopher Eby 368e04c7ad Make MediaButtonReceiver follow code style and remove long press for now 2010-04-05 22:54:12 -05:00
magnus anderssen 4d7a618d6c Added headset button handling 2010-04-05 18:18:54 -05:00
Christopher Eby 19cec7b0b6 Add a null pointer check for mMediaPlayer
It can happen...
2010-04-05 17:20:28 -05:00
Christopher Eby 87585922f2 Add a volume setting
This provides a complement to the system media volume, providing more
fine-grained control
2010-04-04 20:58:27 -05:00
Christopher Eby 1b862cc392 Improve the initial state handling
Now actually notices when the state is uninitialized and updates the state
properly
2010-04-04 15:34:24 -05:00
Christopher Eby d38a778b14 Defer creation of a few utility classes in PlaybackService 2010-04-04 15:25:14 -05:00
Christopher Eby 4e61388fa8 Implement similar graceful no media handling in song selector
Songs disappear when the sd card is unmounted and reappear when it is remounted
2010-04-04 15:17:52 -05:00
Christopher Eby bdb93df55f Handle loss of media gracefully
When the sd card is unmounted, the song will immediately stop and the no media
message will appear. The message will now automatically go away when media is
available
2010-04-04 14:44:30 -05:00
Christopher Eby ce7c5000db Reorganize PlaybackService
The old organization reflected a mystical thread barrier that does not really
exist. The new organization is more typical of the other classes
2010-04-04 10:40:40 -05:00
Christopher Eby 8231667d19 Don't disable the library menu entry when there are no songs 2010-04-04 10:20:16 -05:00
Christopher Eby 95b94f5921 Set the no media flag in setCurrentSong rather than in getSong
Avoids an infinite loop on startup with no media
2010-04-04 10:16:45 -05:00
Christopher Eby 238beaaef6 Combine code to handle playback control buttons 2010-04-04 10:10:39 -05:00
Christopher Eby 6753a30877 Add vertical padding to the seek bar 2010-04-04 01:06:04 -05:00
Christopher Eby 9e8bc71904 Allow the song info to be shown below the cover instead of on top of it
The complexity of the cover view drawing routines is getting a bit ridiculous..
2010-04-04 01:01:24 -05:00
Christopher Eby 124780de98 Make sure we are actually starting up in onCreate
Not just changing configurations
2010-04-03 23:14:55 -05:00
Christopher Eby 85876e1b0f Set a title in the song selector context menu 2010-04-03 23:14:55 -05:00
Christopher Eby e08a39cacf Update the readme 2010-04-03 20:13:47 -05:00
Christopher Eby 9298542e7c Further organize strings 2010-04-03 17:50:31 -05:00
Christopher Eby 4957916360 Add preference to open song selector on startup 2010-04-03 17:49:00 -05:00
Christopher Eby 0ab6b3e6c9 Reword the mini player preference 2010-04-03 17:29:52 -05:00
Christopher Eby e94cf2b443 Organize translatable strings 2010-04-03 17:24:22 -05:00
Christopher Eby 2147dd52cb Update the cover view when the queue changes
This became necessary after the coversion of song selector to a dialog, but was
never added
2010-04-03 17:17:49 -05:00
Christopher Eby 35ba1a0704 Limit the view being expanded to synchronously
The old array adapter prevented a flicker from many songs being displayed to just a few songs being dispalyed after expanding an item. This restores that behavior.
2010-04-03 11:22:37 -05:00
Christopher Eby 126760692f Make the expander flag in MediaAdapter a boolean
Historical reasons had it as a reference. This reference is not necessary now
2010-04-03 11:03:10 -05:00
Christopher Eby 8f76a2be25 Subclass MediaAdapter for songs
Override the sort order when limiting by album to sort by track number
2010-04-03 10:59:04 -05:00
Christopher Eby f5f86018ec Reset the last acted id when the song selector is opened 2010-04-03 10:39:30 -05:00
Christopher Eby 043b5c18b0 Remove the dialer input preference
It is not hooked up to anything anymore since supporting it with an SQl query
would be complicated.
2010-04-03 10:39:26 -05:00
Christopher Eby e21e1c6532 Rework MediaAdapter to be backed by a Cursor instead of an array
This reduces memory requirements and amount of code
2010-04-03 10:38:46 -05:00
Christopher Eby 0571a3189c Covert ids from int to long
MediaStore keeps ids as longs. It is unlikely that someone will have more than 65k songs... but you never know
2010-04-03 10:16:37 -05:00