Merge lp:~vthompson/music-app/remove-qtpowerd into lp:music-app/trusty

Proposed by Victor Thompson
Status: Merged
Approved by: David Planella
Approved revision: 378
Merged at revision: 396
Proposed branch: lp:~vthompson/music-app/remove-qtpowerd
Merge into: lp:music-app/trusty
Diff against target: 52 lines (+0/-14)
3 files modified
debian/control (+0/-1)
music-app.qml (+0/-10)
plugins.json (+0/-3)
To merge this branch: bzr merge lp:~vthompson/music-app/remove-qtpowerd
Reviewer Review Type Date Requested Status
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+210944@code.launchpad.net

Commit message

Remove QtPowerd

Description of the change

This is a proposal to remove QtPowerd since it is not needed to keep the music-app alive due to the lifecycle exceptions it currently has (which will be removed soon). This means that the dependency upon QtPowerd could have been removed quite some time ago.

To test, I pushed the updated QML files and plugins.json file to /opt/click.ubuntu.com/com.ubuntu.music/current/ and removed the QtPowerd from the /opt/click.ubuntu.com/com.ubuntu.music/current/lib/ directory.

One thing to note is that currently if the user has Qt5.2 (might be due to other changes in the landing006 PPA) on the device, both before and after this change music will stop when a track ends AND the device's screen is off. If the user's screen is simply turned back on the next song will start playing. I'm not sure what the issue is here--but it is unrelated to this change.

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 :

I see the same behaviour of the app not moving onto the next track if the screen if off.

I feel this needs investigating before the Qt5.2 images are promoted.

# system-image-cli -i
current build number: 246
device name: mako
channel: ubuntu-touch/devel-proposed
alias: ubuntu-touch/trusty-proposed
last update: 2014-03-19 15:05:46
version version: 246
version ubuntu: 20140319.2
version device: 20140304

Revision history for this message
Victor Thompson (vthompson) wrote :

Agreed, the bug I filed for that (lp:1292306) will be marked critical.

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Tested this on device and it worked fine for me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2014-03-07 20:49:32 +0000
+++ debian/control 2014-03-14 00:15:59 +0000
@@ -18,7 +18,6 @@
18 qtdeclarative5-particles-plugin,18 qtdeclarative5-particles-plugin,
19 qtdeclarative5-qtgrilo0.1,19 qtdeclarative5-qtgrilo0.1,
20 qtdeclarative5-qtmultimedia-plugin,20 qtdeclarative5-qtmultimedia-plugin,
21 qtdeclarative5-qtpowerd0.1 (>= 0.2~),
22 qtdeclarative5-qtquick2-plugin,21 qtdeclarative5-qtquick2-plugin,
23 qtdeclarative5-ubuntu-ui-toolkit-plugin,22 qtdeclarative5-ubuntu-ui-toolkit-plugin,
24 qtdeclarative5-usermetrics0.1,23 qtdeclarative5-usermetrics0.1,
2524
=== modified file 'music-app.qml'
--- music-app.qml 2014-03-08 22:09:12 +0000
+++ music-app.qml 2014-03-14 00:15:59 +0000
@@ -22,7 +22,6 @@
22import Ubuntu.Components.Popups 0.122import Ubuntu.Components.Popups 0.1
23import Ubuntu.Components.ListItems 0.1 as ListItem23import Ubuntu.Components.ListItems 0.1 as ListItem
24import Ubuntu.Unity.Action 1.0 as UnityActions24import Ubuntu.Unity.Action 1.0 as UnityActions
25import QtPowerd 0.1
26import org.nemomobile.grilo 0.125import org.nemomobile.grilo 0.1
27import QtMultimedia 5.026import QtMultimedia 5.0
28import QtQuick.LocalStorage 2.027import QtQuick.LocalStorage 2.0
@@ -267,15 +266,6 @@
267 }266 }
268 }267 }
269268
270 // Connections for powerd
271 Connections {
272 target: player
273 onPlaybackStateChanged: {
274 QtPowerd.keepAlive = player.playbackState === MediaPlayer.PlayingState
275 console.log("QtPowerd.keepAlive=" + QtPowerd.keepAlive)
276 }
277 }
278
279 // Design stuff269 // Design stuff
280 Style { id: styleMusic }270 Style { id: styleMusic }
281 width: units.gu(100)271 width: units.gu(100)
282272
=== modified file 'plugins.json'
--- plugins.json 2013-10-14 22:02:41 +0000
+++ plugins.json 2014-03-14 00:15:59 +0000
@@ -1,8 +1,5 @@
1[1[
2{2{
3 "package": "qtdeclarative5-qtpowerd0.1"
4},
5{
6 "package": "qtdeclarative5-qtgrilo0.1"3 "package": "qtdeclarative5-qtgrilo0.1"
7}4}
8]5]

Subscribers

People subscribed via source and target branches

to status/vote changes: