Merge lp:~gang65/ubuntu-clock-app/ubuntu-clock-app-slider-fix into lp:ubuntu-clock-app

Proposed by Bartosz Kosiorek
Status: Merged
Approved by: Victor Thompson
Approved revision: 386
Merged at revision: 425
Proposed branch: lp:~gang65/ubuntu-clock-app/ubuntu-clock-app-slider-fix
Merge into: lp:ubuntu-clock-app
Diff against target: 150 lines (+38/-43)
2 files modified
app/alarm/AlarmSettingsPage.qml (+28/-34)
debian/changelog (+10/-9)
To merge this branch: bzr merge lp:~gang65/ubuntu-clock-app/ubuntu-clock-app-slider-fix
Reviewer Review Type Date Requested Status
Victor Thompson Approve
Bartosz Kosiorek Needs Information
Jenkins Bot continuous-integration Approve
Review via email: mp+280119@code.launchpad.net

Commit message

Fix continously move the alarm volume slider to the desired value (LP: #1492584)

Description of the change

Fix continously move the alarm volume slider to the desired value (LP: #1492584)

To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

Bartosz, you'll need to update the changelog.

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

Also, this doesn't appear to fix the actual issue.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

Can we not use the existing SDK Slider? Right now we get the following in the logs: file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Settings/Menus/SliderMenu.qml:145:13: QML Slider: Mixing of Ubuntu.Components module versions 1.3 and 1.2 detected!

Also, when I launch the application after changing the volume, occasionally the app will crash. Is it possible this is due to this change? I don't see anything in the logs.

phablet@ubuntu-phablet:~/.cache/upstart$ system-image-cli -i
current build number: 186
device name: mako
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
last update: 2015-12-14 18:07:29
version version: 186
version ubuntu: 20151214
version device: 20150911
version custom: mako-1.1

One last minor comment, there's an extraneous newline on L53 of the diff. Could you please remove it?

review: Needs Information
384. By Bartosz Kosiorek

Fix continously move the alarm volume slider to the desired value (LP: #1492584)

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
385. By Bartosz Kosiorek

Fixes after review

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

@Victor All review remarks are applied. Could you please test it again and check if crash is still existing?

review: Needs Information
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

I have two comments, the first should be fixed, the second can wait as I assume the slider popover will be removed by the fix for bug #1362078.

1. There should be a divider under the alarm volume slider
2. Could we temporarily fix the top margin so the Slider popover doesn't get obscured by the header?

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

If you choose to fix the first issue by using the other slider component that is fine.

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

I believe the issue with the app crashing is bug #1527737, and is not related to your fix here.

386. By Bartosz Kosiorek

Use Menu.SliderMenu, as it is better common with other Ubuntu Phone components: see change volume in System Settings or Status bar

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

@Victor Do you think crash in bug #1475223 is the same issue?

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

I don't believe so. The crash I was observing (bug #1527737) seems to be something introduced very recently and only occurs/is applicable to the device (not Unity 7).

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

This lgtm and behaves as expected. Thanks for the additional fixes Bartosz!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/alarm/AlarmSettingsPage.qml'
2--- app/alarm/AlarmSettingsPage.qml 2015-10-22 16:49:23 +0000
3+++ app/alarm/AlarmSettingsPage.qml 2015-12-20 00:04:12 +0000
4@@ -20,6 +20,7 @@
5 import QtQuick.Layouts 1.1
6 import WorldClock 1.0
7 import Alarm 1.0
8+import Ubuntu.Settings.Menus 0.1 as Menus
9 import Ubuntu.Components 1.3
10 import "../components"
11
12@@ -84,40 +85,33 @@
13 top: parent.top
14 left: parent.left
15 right: parent.right
16- }
17-
18- ListItem {
19- height: 2 * implicitHeight
20-
21- Label {
22- color: UbuntuColors.midAubergine
23- text: i18n.tr("Alarm volume")
24- anchors {
25- left: parent.left
26- leftMargin: units.gu(2)
27- top: parent.top
28- topMargin: units.gu(1)
29- }
30- }
31-
32- Slider {
33- anchors {
34- left: parent.left
35- right: parent.right
36- margins: units.gu(2)
37- verticalCenter: parent.verticalCenter
38- }
39-
40- minimumValue: 1
41- maximumValue: 100
42- value: alarmSettings.volume
43-
44- onValueChanged: {
45- alarmSettings.volume = formatValue(value)
46- }
47- }
48- }
49-
50+ topMargin: units.gu(2)
51+ }
52+
53+ Label {
54+ color: UbuntuColors.midAubergine
55+ text: i18n.tr("Alarm volume")
56+ anchors {
57+ left: parent.left
58+ leftMargin: units.gu(2)
59+ }
60+ }
61+
62+ Menus.SliderMenu {
63+ anchors {
64+ left: parent.left
65+ right: parent.right
66+ }
67+ minimumValue: 1
68+ maximumValue: 100
69+ live: true
70+ value: alarmSettings.volume
71+
72+ onValueChanged: {
73+ alarmSettings.volume = value
74+ }
75+ }
76+
77 ExpandableListItem {
78 id: _alarmDuration
79
80
81=== modified file 'debian/changelog'
82--- debian/changelog 2015-12-11 02:13:16 +0000
83+++ debian/changelog 2015-12-20 00:04:12 +0000
84@@ -3,8 +3,9 @@
85 [ Bartosz Kosiorek ]
86 * Fix alarm difference time description, during DST change (LP: #1510694)
87 * Move to use the new SDK components v1.3 (LP: #1508363)
88+ * Fix continously move the alarm volume slider to the desired value (LP: #1492584)
89
90- -- Bartosz Kosiorek <gang65@poczta.onet.pl> Tue, 27 Oct 2015 23:49:19 +0100
91+ -- Bartosz Kosiorek <gang65@poczta.onet.pl> Wed, 16 Dec 2015 22:44:49 +0100
92
93 ubuntu-clock-app (3.6) vivid; urgency=medium
94
95@@ -381,7 +382,7 @@
96
97 ubuntu-clock-app (2.2) utopic; urgency=medium
98
99- [Nekhelesh Ramananthan]
100+ [ Nekhelesh Ramananthan ]
101 * Split labels to allow for a different color time divider.
102 * Added support for 12-hour time display.
103 * Fixed CMakeList.txt for apparmor file
104@@ -392,7 +393,7 @@
105
106 ubuntu-clock-app (2.1) utopic; urgency=medium
107
108- [Nekhelesh Ramananthan]
109+ [ Nekhelesh Ramananthan ]
110 * Added support for creating new alarms
111 * Added bottom edge for alarms
112 * Added tug down add city animation
113@@ -402,7 +403,7 @@
114
115 ubuntu-clock-app (2.0) utopic; urgency=medium
116
117- [Nekhelesh Ramananthan]
118+ [ Nekhelesh Ramananthan ]
119 * First release of the clock app reboot
120 * Implemented Digital Mode (LP: #1267146)
121 * Fixed scrollable lists on scrollable pages (LP: #1227418)
122@@ -420,24 +421,24 @@
123
124 ubuntu-clock-app (1.0) saucy; urgency=low
125
126- [Nekhelesh Ramananthan]
127+ [ Nekhelesh Ramananthan ]
128 * World Clock list needs to inform user when results cannot be retrieved due to network error (LP: #1231106)
129 * Load premade presets for new user so user doesn't end up in blank app (LP: #1226131)
130 * Return more fine-grained territorial divisions for city search results (LP: #1230153)
131 * Improve the visual appearance of the clock, timer, stopwatch and alarm
132 * Removed hour support from timer
133
134- [Sergio Schvezov]
135+ [ Sergio Schvezov ]
136 * Translation for desktop and debian package
137 * Fix click package confinement issues
138
139- [Riccardo Padovani]
140+ [ Riccardo Padovani ]
141 * Alarm notifications do not appear when an alarm is triggered (LP: #1233176)
142
143- [Nicholas Skaggs]
144+ [ Nicholas Skaggs ]
145 * Several apps have failing tests with 20131003 ui-toolkit (LP: #1234544)
146
147- [Andrea Cerisara]
148+ [ Andrea Cerisara ]
149 * Autopilot Testcase Needed: Test Add World Clock (LP: #1210196)
150 * Autopilot Testcase Needed: Test Delete World Clock (LP: #1210197)
151

Subscribers

People subscribed via source and target branches