Merge lp:~andrewsomething/ubuntu-weather-app/lp121890 into lp:ubuntu-weather-app/obsolete.trunk

Proposed by Andrew Starr-Bochicchio
Status: Merged
Approved by: Raúl Yeguas
Approved revision: 108
Merged at revision: 117
Proposed branch: lp:~andrewsomething/ubuntu-weather-app/lp121890
Merge into: lp:ubuntu-weather-app/obsolete.trunk
Diff against target: 54 lines (+21/-9)
1 file modified
ubuntu-weather-app.qml (+21/-9)
To merge this branch: bzr merge lp:~andrewsomething/ubuntu-weather-app/lp121890
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Martin Borho Approve
Review via email: mp+186371@code.launchpad.net

This proposal supersedes a proposal from 2013-09-17.

Commit message

Increase visibility of ActivityIndicator while refreshing data using an UbuntuShape around it and moving above the weather info.

Description of the change

Increase visibility of ActivityIndicator while refreshing data using an UbuntuShape around it and moving above the weather info.

To post a comment you must log in.
Revision history for this message
Martin Borho (martin-borho) wrote : Posted in a previous version of this proposal

Well done! Thanks for contributing!

review: Approve
Revision history for this message
Martin Borho (martin-borho) wrote : Posted in a previous version of this proposal

Found out, the tests are broken.

When you change Line 198 in ubuntu-weather-app.qml to "running: refresh.visible", everything should work again!

Cheers
Martin

review: Needs Fixing
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Ok, made that change, but I wasn't able to test the tests... How are you invoking the tests?

Revision history for this message
Martin Borho (martin-borho) wrote :

Go in tests/autopilot and use the command "autopilot run ubuntu_weather_app". Do "autopilot list ubuntu_weather_app" to get a list of all tests available.

Tutorial and the packages you need are described here: http://developer.ubuntu.com/resources/tutorials/quality/how-to-write-autopilot-tests/

Revision history for this message
Martin Borho (martin-borho) wrote :

Now everything works, thanks!

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

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~andrewsomething/ubuntu-weather-app/lp121890/+merge/186371/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
Raúl Yeguas (neokore) wrote :

Now it should merge. Thanks Andrew, good work!

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-weather-app.qml'
2--- ubuntu-weather-app.qml 2013-09-03 13:13:29 +0000
3+++ ubuntu-weather-app.qml 2013-09-18 15:40:12 +0000
4@@ -110,7 +110,7 @@
5 var locLength = locations.length,
6 locBeforeLen = locationsList.length,
7 focusToLast = (locBeforeLen > 0 && locLength > locBeforeLen) ? true : false;
8- loading.running = false;
9+ refresh.visible = false;
10 // show locationmanager when no location is added
11 if(locLength === 0) {
12 showLocationManager()
13@@ -135,8 +135,7 @@
14 }
15
16 function refreshData(from_storage, force_refresh) {
17- loading.running = true;
18- //
19+ refresh.visible = true;
20 if(from_storage === true && force_refresh !== true) {
21 storage.getLocations(buildTabs);
22 } else {
23@@ -180,12 +179,25 @@
24 id:locationManager
25 }
26
27- ActivityIndicator{
28- id:loading
29- objectName: "LoadingSpinner"
30- running: false
31- z: 1
32- anchors.centerIn: parent
33+ UbuntuShape {
34+ id: refresh
35+ height: units.gu(5)
36+ width: units.gu(5)
37+ color: "#90FFFFFF"
38+ visible: false
39+ anchors {
40+ horizontalCenter: parent.horizontalCenter
41+ top: parent.top
42+ margins: units.gu(15)
43+ }
44+
45+ ActivityIndicator {
46+ id: loading
47+ objectName: "LoadingSpinner"
48+ anchors.centerIn: parent
49+ running: refresh.visible
50+ z: 1
51+ }
52 }
53
54 Item {

Subscribers

People subscribed via source and target branches