Merge lp:~vthompson/music-app/fix-recent-from-scope-1357149 into lp:music-app/trusty

Proposed by Victor Thompson
Status: Merged
Approved by: Victor Thompson
Approved revision: 569
Merged at revision: 576
Proposed branch: lp:~vthompson/music-app/fix-recent-from-scope-1357149
Merge into: lp:music-app/trusty
Diff against target: 15 lines (+5/-0)
1 file modified
music-app.qml (+5/-0)
To merge this branch: bzr merge lp:~vthompson/music-app/fix-recent-from-scope-1357149
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+230916@code.launchpad.net

Commit message

* Add album from scope to recent list

Description of the change

See bug description. This simple MP adds any album played from the music scope to recent list when it detects the URI.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Approve!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'music-app.qml'
2--- music-app.qml 2014-08-12 16:14:16 +0000
3+++ music-app.qml 2014-08-15 01:24:39 +0000
4@@ -216,6 +216,11 @@
5 // Filter by artist and album
6 songsAlbumArtistModel.artist = decodeURIComponent(split[0]);
7 songsAlbumArtistModel.album = decodeURIComponent(split[1]);
8+
9+ // Add album to recent list
10+ Library.addRecent(songsAlbumArtistModel.album, songsAlbumArtistModel.artist, null, songsAlbumArtistModel.album, "album")
11+ mainView.hasRecent = true
12+ recentModel.filterRecent()
13 }
14
15 function processFile(uri, play) {

Subscribers

People subscribed via source and target branches

to status/vote changes: