Merge lp:~renatofilho/address-book-app/fix-1511477 into lp:address-book-app
- fix-1511477
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Tiago Salem Herrmann |
Approved revision: | 496 |
Merged at revision: | 506 |
Proposed branch: | lp:~renatofilho/address-book-app/fix-1511477 |
Merge into: | lp:address-book-app |
Diff against target: |
178 lines (+38/-23) 4 files modified
src/imports/ABContactListPage.qml (+32/-12) src/imports/BottomEdge.qml (+1/-1) src/imports/Ubuntu/Contacts/ContactListView.qml (+1/-6) src/imports/Ubuntu/Contacts/ContactSimpleListView.qml (+4/-4) |
To merge this branch: | bzr merge lp:~renatofilho/address-book-app/fix-1511477 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Needs Fixing | |
Tiago Salem Herrmann (community) | Approve | ||
Bill Filler (community) | Needs Fixing | ||
Review via email: mp+276171@code.launchpad.net |
Commit message
Does not leave "searching" state while previewing contact.
Description of the change
PS Jenkins bot (ps-jenkins) wrote : | # |
- 494. By Renato Araujo Oliveira Filho
-
Does not cancel search after edit a contact.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:494
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 495. By Renato Araujo Oliveira Filho
-
Trunk merged.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:495
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Bill Filler (bfiller) wrote : | # |
Works nicely in the contacts app. If you search, then open a contact, then press back button, the contact is still selected and the search field has focus which keeps the keyboard open. However if I do the same thing from the dialer app, after pressing the back button the contact is not selected and the search field does not have focus. The dialer-app should work the same as contact app.
- 496. By Renato Araujo Oliveira Filho
-
Only highlight active contacts when in multiple column mode.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:496
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Tiago Salem Herrmann (tiagosh) wrote : | # |
Works fine now, including the use case that bill reported.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:496
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 497. By Renato Araujo Oliveira Filho
-
Disable bottom edge while searching.
- 498. By Renato Araujo Oliveira Filho
-
Fixed focus on search field when changing the state to searching.
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
Are there any related MPs required for this MP to build/function as expected?
NO
Is your branch in sync with latest trunk?
YES
Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
YES
Did you successfully run all tests found in your component's Test Plan on device or emulator?
YES
If you changed the UI, was the change specified/approved by design?
NO UI CHANGED
If you changed UI labels, did you update the pot file?
NO LABEL CHANGED
If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
NO PACKAGING CHANGED
- 499. By Renato Araujo Oliveira Filho
-
Trunk merged.
Preview Diff
1 | === modified file 'src/imports/ABContactListPage.qml' | |||
2 | --- src/imports/ABContactListPage.qml 2015-10-26 13:18:11 +0000 | |||
3 | +++ src/imports/ABContactListPage.qml 2015-11-24 00:27:58 +0000 | |||
4 | @@ -89,7 +89,10 @@ | |||
5 | 89 | 89 | ||
6 | 90 | function showContact(contact) | 90 | function showContact(contact) |
7 | 91 | { | 91 | { |
9 | 92 | mainPage.state = "default"; | 92 | // go back to normal state if not searching |
10 | 93 | if (state !== "searching") { | ||
11 | 94 | mainPage.state = "default"; | ||
12 | 95 | } | ||
13 | 93 | openViewPage({model: contactList.listModel, | 96 | openViewPage({model: contactList.listModel, |
14 | 94 | contact: contact}); | 97 | contact: contact}); |
15 | 95 | } | 98 | } |
16 | @@ -129,6 +132,11 @@ | |||
17 | 129 | 132 | ||
18 | 130 | function moveListToContact(contact) | 133 | function moveListToContact(contact) |
19 | 131 | { | 134 | { |
20 | 135 | // skipt it if searching | ||
21 | 136 | if (state === "searching") { | ||
22 | 137 | return | ||
23 | 138 | } | ||
24 | 139 | |||
25 | 132 | contactIndex = contact | 140 | contactIndex = contact |
26 | 133 | mainPage.state = "default" | 141 | mainPage.state = "default" |
27 | 134 | // this means a new contact was created | 142 | // this means a new contact was created |
28 | @@ -176,15 +184,11 @@ | |||
29 | 176 | filterTerm: searchField.text | 184 | filterTerm: searchField.text |
30 | 177 | multiSelectionEnabled: true | 185 | multiSelectionEnabled: true |
31 | 178 | multipleSelection: (mainPage.pickMode && mainPage.pickMultipleContacts) || !mainPage.pickMode | 186 | multipleSelection: (mainPage.pickMode && mainPage.pickMultipleContacts) || !mainPage.pickMode |
35 | 179 | highlightedContact: contactViewPage ? contactViewPage.contact : | 187 | highlightSelected: pageStack.columns > 1 |
33 | 180 | contactEditorPage ? contactEditorPage.contact : null | ||
34 | 181 | |||
36 | 182 | onAddContactClicked: mainPage.createContactWithPhoneNumber(label) | 188 | onAddContactClicked: mainPage.createContactWithPhoneNumber(label) |
37 | 183 | onAddNewContactClicked: mainPage.createContactWithPhoneNumber(mainPage.newPhoneToAdd) | 189 | onAddNewContactClicked: mainPage.createContactWithPhoneNumber(mainPage.newPhoneToAdd) |
38 | 184 | 190 | ||
42 | 185 | onContactClicked: { | 191 | onContactClicked: mainPage.showContact(contact) |
40 | 186 | showContact(contact); | ||
41 | 187 | } | ||
43 | 188 | onIsInSelectionModeChanged: mainPage.state = isInSelectionMode ? "selection" : "default" | 192 | onIsInSelectionModeChanged: mainPage.state = isInSelectionMode ? "selection" : "default" |
44 | 189 | onSelectionCanceled: { | 193 | onSelectionCanceled: { |
45 | 190 | if (pickMode) { | 194 | if (pickMode) { |
46 | @@ -209,10 +213,15 @@ | |||
47 | 209 | right: parent.right | 213 | right: parent.right |
48 | 210 | rightMargin: units.gu(2) | 214 | rightMargin: units.gu(2) |
49 | 211 | } | 215 | } |
51 | 212 | visible: mainPage.searching | 216 | focus: false |
52 | 217 | visible: false | ||
53 | 213 | onTextChanged: contactList.currentIndex = -1 | 218 | onTextChanged: contactList.currentIndex = -1 |
54 | 214 | inputMethodHints: Qt.ImhNoPredictiveText | 219 | inputMethodHints: Qt.ImhNoPredictiveText |
55 | 215 | placeholderText: i18n.tr("Search...") | 220 | placeholderText: i18n.tr("Search...") |
56 | 221 | onFocusChanged: { | ||
57 | 222 | if (visible && focus) | ||
58 | 223 | searchField.forceActiveFocus() | ||
59 | 224 | } | ||
60 | 216 | } | 225 | } |
61 | 217 | 226 | ||
62 | 218 | Connections { | 227 | Connections { |
63 | @@ -305,6 +314,11 @@ | |||
64 | 305 | } | 314 | } |
65 | 306 | 315 | ||
66 | 307 | PropertyChanges { | 316 | PropertyChanges { |
67 | 317 | target: bottomEdge | ||
68 | 318 | enabled: false | ||
69 | 319 | } | ||
70 | 320 | |||
71 | 321 | PropertyChanges { | ||
72 | 308 | target: mainPage.head | 322 | target: mainPage.head |
73 | 309 | backAction: searchingState.backAction | 323 | backAction: searchingState.backAction |
74 | 310 | contents: searchField | 324 | contents: searchField |
75 | @@ -314,6 +328,12 @@ | |||
76 | 314 | target: searchField | 328 | target: searchField |
77 | 315 | text: "" | 329 | text: "" |
78 | 316 | } | 330 | } |
79 | 331 | |||
80 | 332 | PropertyChanges { | ||
81 | 333 | target: searchField | ||
82 | 334 | visible: true | ||
83 | 335 | focus: true | ||
84 | 336 | } | ||
85 | 317 | }, | 337 | }, |
86 | 318 | PageHeadState { | 338 | PageHeadState { |
87 | 319 | id: selectionState | 339 | id: selectionState |
88 | @@ -414,16 +434,16 @@ | |||
89 | 414 | detailToPick: -1 | 434 | detailToPick: -1 |
90 | 415 | showAddNewButton: true | 435 | showAddNewButton: true |
91 | 416 | } | 436 | } |
92 | 417 | PropertyChanges { | ||
93 | 418 | target: bottomEdge | ||
94 | 419 | enabled: false | ||
95 | 420 | } | ||
96 | 421 | } | 437 | } |
97 | 422 | ] | 438 | ] |
98 | 439 | |||
99 | 423 | onActiveChanged: { | 440 | onActiveChanged: { |
100 | 424 | if (active && contactList.showAddNewButton) { | 441 | if (active && contactList.showAddNewButton) { |
101 | 425 | contactList.positionViewAtBeginning() | 442 | contactList.positionViewAtBeginning() |
102 | 426 | } | 443 | } |
103 | 444 | if (active && (state === "searching")) { | ||
104 | 445 | searchField.forceActiveFocus() | ||
105 | 446 | } | ||
106 | 427 | } | 447 | } |
107 | 428 | 448 | ||
108 | 429 | KeyboardRectangle { | 449 | KeyboardRectangle { |
109 | 430 | 450 | ||
110 | === modified file 'src/imports/BottomEdge.qml' | |||
111 | --- src/imports/BottomEdge.qml 2015-10-23 14:32:47 +0000 | |||
112 | +++ src/imports/BottomEdge.qml 2015-11-24 00:27:58 +0000 | |||
113 | @@ -89,10 +89,10 @@ | |||
114 | 89 | id: bottomEdgeLoader | 89 | id: bottomEdgeLoader |
115 | 90 | sourceComponent: bottomEdge.contentComponent | 90 | sourceComponent: bottomEdge.contentComponent |
116 | 91 | asynchronous: true | 91 | asynchronous: true |
117 | 92 | active: bottomEdge.enabled | ||
118 | 92 | } | 93 | } |
119 | 93 | } | 94 | } |
120 | 94 | 95 | ||
121 | 95 | |||
122 | 96 | BottomEdgeHint { | 96 | BottomEdgeHint { |
123 | 97 | id: bottomEdgeHint | 97 | id: bottomEdgeHint |
124 | 98 | 98 | ||
125 | 99 | 99 | ||
126 | === modified file 'src/imports/Ubuntu/Contacts/ContactListView.qml' | |||
127 | --- src/imports/Ubuntu/Contacts/ContactListView.qml 2015-10-28 01:07:59 +0000 | |||
128 | +++ src/imports/Ubuntu/Contacts/ContactListView.qml 2015-11-24 00:27:58 +0000 | |||
129 | @@ -248,12 +248,8 @@ | |||
130 | 248 | This property holds the vertical velocity of the list | 248 | This property holds the vertical velocity of the list |
131 | 249 | */ | 249 | */ |
132 | 250 | readonly property real verticalVelocity: view.verticalVelocity | 250 | readonly property real verticalVelocity: view.verticalVelocity |
133 | 251 | /*! | ||
134 | 252 | \qmlproperty Contact highlightedContact | ||
135 | 253 | 251 | ||
139 | 254 | This property holds a reference to the Contact that should be highlighted | 252 | property alias highlightSelected: view.highlightSelected |
137 | 255 | */ | ||
138 | 256 | property Contact highlightedContact: null | ||
140 | 257 | 253 | ||
141 | 258 | property var _busyDialog: null | 254 | property var _busyDialog: null |
142 | 259 | 255 | ||
143 | @@ -382,7 +378,6 @@ | |||
144 | 382 | property bool showFavourites: true | 378 | property bool showFavourites: true |
145 | 383 | property alias favouritesIsSelected: contactsModel.onlyFavorites | 379 | property alias favouritesIsSelected: contactsModel.onlyFavorites |
146 | 384 | property bool contactsLoaded: false | 380 | property bool contactsLoaded: false |
147 | 385 | highlightedContact: root.highlightedContact | ||
148 | 386 | 381 | ||
149 | 387 | function getSectionText(index) { | 382 | function getSectionText(index) { |
150 | 388 | var tag = listModel.contacts[index].tag.tag | 383 | var tag = listModel.contacts[index].tag.tag |
151 | 389 | 384 | ||
152 | === modified file 'src/imports/Ubuntu/Contacts/ContactSimpleListView.qml' | |||
153 | --- src/imports/Ubuntu/Contacts/ContactSimpleListView.qml 2015-10-26 13:18:11 +0000 | |||
154 | +++ src/imports/Ubuntu/Contacts/ContactSimpleListView.qml 2015-11-24 00:27:58 +0000 | |||
155 | @@ -145,11 +145,11 @@ | |||
156 | 145 | property list<Action> rightSideActions | 145 | property list<Action> rightSideActions |
157 | 146 | 146 | ||
158 | 147 | /*! | 147 | /*! |
160 | 148 | \qmlproperty Contact highlightedContact | 148 | \qmlproperty highlightSelected |
161 | 149 | 149 | ||
163 | 150 | This property holds a reference to the Contact that should be highlighted | 150 | This property holds if the current contact should be highlighted or not |
164 | 151 | */ | 151 | */ |
166 | 152 | property Contact highlightedContact: null | 152 | property bool highlightSelected: false |
167 | 153 | 153 | ||
168 | 154 | /* internal */ | 154 | /* internal */ |
169 | 155 | property var _currentSwipedItem: null | 155 | property var _currentSwipedItem: null |
170 | @@ -269,7 +269,7 @@ | |||
171 | 269 | flicking: contactListView.flicking | 269 | flicking: contactListView.flicking |
172 | 270 | width: parent.width | 270 | width: parent.width |
173 | 271 | selected: (contactListView.multiSelectionEnabled && contactListView.isSelected(contactDelegate)) | 271 | selected: (contactListView.multiSelectionEnabled && contactListView.isSelected(contactDelegate)) |
175 | 272 | || (contactListView.highlightedContact && contactListView.highlightedContact.contactId == contact.contactId) | 272 | || (contactListView.highlightSelected && (contactListView.currentIndex == index)) |
176 | 273 | selectionMode: contactListView.isInSelectionMode | 273 | selectionMode: contactListView.isInSelectionMode |
177 | 274 | defaultAvatarUrl: contactListView.defaultAvatarImageUrl | 274 | defaultAvatarUrl: contactListView.defaultAvatarImageUrl |
178 | 275 | isCurrentItem: ListView.isCurrentItem | 275 | isCurrentItem: ListView.isCurrentItem |
FAILED: Continuous integration, rev:493 jenkins. qa.ubuntu. com/job/ address- book-app- ci/991/ jenkins. qa.ubuntu. com/job/ address- book-app- vivid-i386- ci/294 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 4928 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 3958 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4925 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 4925/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 24717
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/address- book-app- ci/991/ rebuild
http://