Merge lp://staging/~headbangerkenny/ubuntuone-android-music/branch into lp://staging/ubuntuone-android-music

Proposed by Joe Simpson
Status: Work in progress
Proposed branch: lp://staging/~headbangerkenny/ubuntuone-android-music/branch
Merge into: lp://staging/ubuntuone-android-music
Diff against target: 163 lines (+32/-8)
9 files modified
res/values/styles.xml (+2/-2)
res/xml/appwidget_info.xml (+1/-1)
src/net/sourceforge/subsonic/androidapp/activity/DownloadActivity.java (+8/-2)
src/net/sourceforge/subsonic/androidapp/activity/MainActivity.java (+1/-1)
src/net/sourceforge/subsonic/androidapp/service/CachedMusicService.java (+2/-0)
src/net/sourceforge/subsonic/androidapp/service/DownloadService.java (+2/-0)
src/net/sourceforge/subsonic/androidapp/service/DownloadServiceImpl.java (+2/-1)
src/net/sourceforge/subsonic/androidapp/util/FileUtil.java (+2/-1)
src/net/sourceforge/subsonic/androidapp/util/ShufflePlayBuffer.java (+12/-0)
To merge this branch: bzr merge lp://staging/~headbangerkenny/ubuntuone-android-music/branch
Reviewer Review Type Date Requested Status
Chad Miller (community) Needs Fixing
Review via email: mp+71364@code.staging.launchpad.net

Commit message

Shuffle Songs improvements -- headbangerkenny

Description of the change

Basically improves the UX a little, so that new users get "Buffering" while the app is loading the shuffled playlist and automatically plays after "Shuffle Songs" is selected.

To post a comment you must log in.
Revision history for this message
Chad Miller (cmiller) wrote :

This is good, we definitely need feedback when waiting for the shuffle-queue to download. The shuffle buffer already starts playing, though.

MainActivity starts DownloadActivity, which checks the received intent for whether this is shuffle-play, and if it is, calls setShufflePlayEnabled(), which calls checkDownloads(), which calls checkShufflePlay(), which calls then play(0) IF it is the first time a shuffle-play has been started (id est, if shuffle play hasn't been stopped in the past).

On subsequent shuffle-play taps, should the music player do anything other than return the user to the place they were before? I need convincing it should do more.

I welcome the informational change for the user. With that only that change, I'd approve. Marking "Needs Fixing" to indicate that I so far don't want the other changes.

review: Needs Fixing
530. By Joe Simpson

Removed that play(0); code that was requested. However, I have moved the cache folder from /sdcard/subsonic to /sdcard/Android/data/net.sourceforge.subsonic.u1m/music because Android says we should do that. Also, I noticed on my device that the ShuffleBuffer would randomly be empty, so when that happens on get() I tell it to grab more tracks, which works (I end up waiting up to 15 mins for this to refill on my device otherwise)

Revision history for this message
Joe Simpson (headbangerkenny) wrote :

Okay, I've done that with a few changes for you to look at :)

Revision history for this message
Chad Miller (cmiller) wrote :

I want to add some of these ideas, but I don't want to add all of them. Please don't make a proposed merge a package-deal of disparate ideas, all-or-nothing. Branches are free! :) Put one idea in per branch.

I would probably have created branches

lp:~headbangerkenny/ubuntuone-android-music/shuffle-progress-information

lp:~headbangerkenny/ubuntuone-android-music/cache-in-official-suggested-folder

lp:~headbangerkenny/ubuntuone-android-music/shuffle-grab-more-tracks-on-empty

lp:~headbangerkenny/ubuntuone-android-music/automatically-resume-on-subsequent-shuffleplay

Revision history for this message
Joe Simpson (headbangerkenny) wrote :

Okay dokie, I'm new to launchpad and I'll remember this!
On Aug 22, 2011 2:08 PM, "Chad Miller" <email address hidden> wrote:
> I want to add some of these ideas, but I don't want to add all of them.
Please don't make a proposed merge a package-deal of disparate ideas,
all-or-nothing. Branches are free! :) Put one idea in per branch.
>
> I would probably have created branches
>
> lp:~headbangerkenny/ubuntuone-android-music/shuffle-progress-information
>
>
lp:~headbangerkenny/ubuntuone-android-music/cache-in-official-suggested-folder
>
>
lp:~headbangerkenny/ubuntuone-android-music/shuffle-grab-more-tracks-on-empty
>
>
lp:~headbangerkenny/ubuntuone-android-music/automatically-resume-on-subsequent-shuffleplay
> --
>
https://code.launchpad.net/~headbangerkenny/ubuntuone-android-music/branch/+merge/71364
> You are the owner of lp:~headbangerkenny/ubuntuone-android-music/branch.

Revision history for this message
Chad Miller (cmiller) wrote :

First, cheers on using File()s to create deep path, rather than succumbing to temptation to manually construct a string with slashes in it. I don't mind moving it to a standard location, but I wonder if it should be the standard "Music" directory instead. If you're going to move the location, you should handle old data and clean it up or move it, rather than abandoning it.

I don't think you mean a recurring Task in ShufflePlayBuffer.get() .

review: Needs Fixing
Revision history for this message
Chad Miller (cmiller) wrote :

First, cheers on using File()s to create deep path, rather than succumbing to temptation to manually construct a string with slashes in it. I don't mind moving it to a standard location, but I wonder if it should be the standard "Music" directory instead. If you're going to move the location, you should handle old data and clean it up or move it, rather than abandoning it.

I don't think you mean a recurring Task in ShufflePlayBuffer.get() .

review: Needs Fixing

Unmerged revisions

530. By Joe Simpson

Removed that play(0); code that was requested. However, I have moved the cache folder from /sdcard/subsonic to /sdcard/Android/data/net.sourceforge.subsonic.u1m/music because Android says we should do that. Also, I noticed on my device that the ShuffleBuffer would randomly be empty, so when that happens on get() I tell it to grab more tracks, which works (I end up waiting up to 15 mins for this to refill on my device otherwise)

529. By Joe Simpson

I have modified the Ubuntu One Music App so that when you tell it to Shuffle, it'll say it's buffering while the playlist is sorted out. Also it'll automatically play when pressing "Shuffle Songs" from the main screen.

528. By Chad Miller

Don't make non-ui events into Page Views in analytics.

527. By Chad Miller

When overriding Activities, be sure to call the superclass's same method. Android requires it.

526. By MichaƂ Karnicki

Lower priority of media button receiver, unregister receiver when done.

525. By Chad Miller

Merge bad-index crash and trunk with analytics.

524. By Chad Miller

Don't dispatch automatically. We are going to use the network here, so dispatch only when we have the network active.

523. By Chad Miller

Revert bogus mistaken change to auth-return scheme.

522. By Chad Miller

Make analytics use more flag values, instead of magnitude values where appropriate.

Add analytics for cache miss and cache total-use. (Subtraction equals cache hit.)

Add analytics for free-space magnitude.

521. By Chad Miller

Make manual trackers dispatch events.

Make downloader start tracker correctly.

Add tracking to other Activities.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: