Merge lp:~tiagosh/dialer-app/hide-accounts-switcher into lp:dialer-app

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Bill Filler
Approved revision: 185
Merged at revision: 185
Proposed branch: lp:~tiagosh/dialer-app/hide-accounts-switcher
Merge into: lp:dialer-app
Diff against target: 32 lines (+8/-6)
1 file modified
src/qml/DialerPage/DialerPage.qml (+8/-6)
To merge this branch: bzr merge lp:~tiagosh/dialer-app/hide-accounts-switcher
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+227337@code.launchpad.net

Commit message

Hide account switcher when there is only one account.

Description of the change

Hide account switcher when there is only one account.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/DialerPage/DialerPage.qml'
2--- src/qml/DialerPage/DialerPage.qml 2014-07-17 21:18:05 +0000
3+++ src/qml/DialerPage/DialerPage.qml 2014-07-18 14:17:11 +0000
4@@ -29,6 +29,7 @@
5 property string voicemailNumber: callManager.voicemailNumber
6 property alias dialNumber: keypadEntry.value
7 property alias input: keypadEntry.input
8+ property bool multipleAccounts: telepathyHelper.accountIds.length > 1
9 objectName: "dialerPage"
10
11 tools: ToolbarItems {
12@@ -133,13 +134,14 @@
13 // TODO replace by the sdk sections component when it's released
14 Rectangle {
15 id: accountList
16+ anchors {
17+ left: parent.left
18+ right: parent.right
19+ top: parent.top
20+ }
21+ clip: !multipleAccounts
22+ height: multipleAccounts ? childrenRect.height : 0
23 z: 1
24- anchors {
25- left: parent.left
26- right: parent.right
27- top: parent.top
28- }
29- height: telepathyHelper.accountIds.length > 1 ? childrenRect.height : 0
30 color: "white"
31 Row {
32 anchors {

Subscribers

People subscribed via source and target branches