Merge lp:~ahayzen/music-app/remix-toolbar-always-now-playing-full into lp:music-app/remix

Proposed by Andrew Hayzen
Status: Merged
Approved by: Victor Thompson
Approved revision: 658
Merged at revision: 656
Proposed branch: lp:~ahayzen/music-app/remix-toolbar-always-now-playing-full
Merge into: lp:music-app/remix
Diff against target: 43 lines (+4/-8)
2 files modified
MusicNowPlaying.qml (+0/-6)
music-app.qml (+4/-2)
To merge this branch: bzr merge lp:~ahayzen/music-app/remix-toolbar-always-now-playing-full
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Victor Thompson Approve
Andrew Hayzen Abstain
Review via email: mp+237656@code.launchpad.net

Commit message

* From the toolbar always jump to full view (eg if toolbar is selected in queue view jump to full)

Description of the change

* From the toolbar always jump to full view (eg if toolbar is selected in queue view jump to full)

Currently clicking on the toolbar will result in you ended up on the now playing full page, however if you are on the now playing list page nothing happens. This makes sure that clicking the toolbar always ends up in the same place.

<ahayzen> jounih, so on this page https://drive.google.com/file/d/0B3XynHVKfrvMR1JMSEJVM3R3WWM
<ahayzen> jounih, if i click in the toolbar should it jump to...
<ahayzen> jounih, this page https://drive.google.com/file/d/0B3XynHVKfrvMZm0yZUR0dFZFemc
<jounih> yes
<ahayzen> jounih, cool thanks :)
<jounih> however, if you click any of those listitems in the queue view, no it shouldnt jump

To post a comment you must log in.
Revision history for this message
Victor Thompson (vthompson) wrote :

I noticed the same thing. I like the change. Would it make more sense to consolidate all the calls to reset isListView such that it is done under pushNowPlaying() in music-app.qml?

review: Needs Information
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 thought about putting it in pushNowPlaying() but that should be covered by the onVisibleChanged, unless I remove the setting of isListView there and change it to in pushNowPlaying() ?

review: Approve
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Arg damn hit approve lol.

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

That's what I meant as well, I'm just not 100% moving this to pushNowPlaying would catch all instances or not (can't test at the moment).

657. By Andrew Hayzen

* Move call to inside pushNowPlaying()

658. By Andrew Hayzen

* Ensure all instances use pushNowPlaying()

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

LGTM!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MusicNowPlaying.qml'
2--- MusicNowPlaying.qml 2014-10-07 14:13:28 +0000
3+++ MusicNowPlaying.qml 2014-10-08 18:37:40 +0000
4@@ -32,12 +32,6 @@
5 objectName: "nowPlayingPage"
6 title: i18n.tr("Now Playing")
7 visible: false
8- onVisibleChanged: {
9- if (!visible) {
10- // Reset the isListView property
11- isListView = false
12- }
13- }
14
15 property int ensureVisibleIndex: 0 // ensure first index is visible at startup
16 property bool isListView: false
17
18=== modified file 'music-app.qml'
19--- music-app.qml 2014-10-06 02:18:23 +0000
20+++ music-app.qml 2014-10-08 18:37:40 +0000
21@@ -89,11 +89,11 @@
22 }
23 break;
24 case Qt.Key_J: // Ctrl+J Jump to playing song
25- nowPlaying.visible = true;
26+ tabs.pushNowPlaying()
27 nowPlaying.positionAt(player.currentIndex);
28 break;
29 case Qt.Key_N: // Ctrl+N Show now playing
30- nowPlaying.visible = true;
31+ tabs.pushNowPlaying()
32 break;
33 case Qt.Key_P: // Ctrl+P Toggle playing state
34 player.toggle();
35@@ -1099,6 +1099,8 @@
36 if (mainPageStack.currentPage !== nowPlaying) {
37 mainPageStack.push(nowPlaying);
38 }
39+
40+ nowPlaying.isListView = false; // ensure full view
41 }
42
43 Component.onCompleted: musicToolbar.currentTab = selectedTab

Subscribers

People subscribed via source and target branches