Merge lp:~tiagosh/gsettings-ubuntu-touch-schemas/add-call-messages-vibration-properties into lp:gsettings-ubuntu-touch-schemas

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 34
Merged at revision: 33
Proposed branch: lp:~tiagosh/gsettings-ubuntu-touch-schemas/add-call-messages-vibration-properties
Merge into: lp:gsettings-ubuntu-touch-schemas
Diff against target: 25 lines (+16/-0)
1 file modified
accountsservice/com.ubuntu.touch.AccountsService.Sound.xml (+16/-0)
To merge this branch: bzr merge lp:~tiagosh/gsettings-ubuntu-touch-schemas/add-call-messages-vibration-properties
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+225885@code.launchpad.net

Commit message

Add support for vibration on incoming calls/messages.

Description of the change

Add support for vibration on incoming calls/messages.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Looks fine to me. Having bools for those is fine, we could also have an int value (0=don't vibrate, 1=vibrate on ring, 2=vibrate on silence). Small wording comment inline as well

Setting as "approve" by comment but not changing the status, it would be nice if an english speaker could comment on the wording issue. Otherwise that looks good so feel free to ack it once that's sorted out

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

On Mon, Jul 07, 2014 at 07:52:20PM -0000, Tiago Salem Herrmann wrote:
> […]
> === modified file 'schemas/com.ubuntu.touch.sound.gschema.xml.in.in'

We should stop updating gsettings. That was only kept as an interim
while telephony-service was being transitioned. Could you please drop
this?

Whoever does the u-s-s code side of this can stop updating GSettings
there too.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Lars Karlitski (larsu) wrote :

> Looks fine to me. Having bools for those is fine, we could also have an int
> value (0=don't vibrate, 1=vibrate on ring, 2=vibrate on silence). Small
> wording comment inline as well

I prefer strings: it makes it easier to deal with when debugging or having a quick look.

However in this case I think the two booleans are better, because we allow all combinations of those (according to the spec). Representing all of them in a single enum would be a bit awkward.

34. By Tiago Salem Herrmann

drop gsettings schema

Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

> Looks fine to me. Having bools for those is fine, we could also have an int
> value (0=don't vibrate, 1=vibrate on ring, 2=vibrate on silence). Small
> wording comment inline as well

I think this is also possible, but as Lars said, the booleans allow combinations and match the UI requirements: https://wiki.ubuntu.com/Sound#Settings
Also as reference, this is the telephony-service patch to use the proposed approach with booleans: https://code.launchpad.net/~tiagosh/telephony-service/vibrate-on-calls-and-messages/+merge/225886

>
> Setting as "approve" by comment but not changing the status, it would be nice
> if an english speaker could comment on the wording issue. Otherwise that looks
> good so feel free to ack it once that's sorted out

I think you are right, but as I was asked to drop the gsettings part, we don't need the descriptions anymore.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'accountsservice/com.ubuntu.touch.AccountsService.Sound.xml'
2--- accountsservice/com.ubuntu.touch.AccountsService.Sound.xml 2014-03-04 20:12:42 +0000
3+++ accountsservice/com.ubuntu.touch.AccountsService.Sound.xml 2014-07-08 01:29:15 +0000
4@@ -18,5 +18,21 @@
5 value="/usr/share/sounds/ubuntu/notifications/Xylo.ogg"/>
6 </property>
7
8+ <property name="IncomingCallVibrate" type="b" access="readwrite">
9+ <annotation name="org.freedesktop.Accounts.DefaultValue" value="true"/>
10+ </property>
11+
12+ <property name="IncomingCallVibrateSilentMode" type="b" access="readwrite">
13+ <annotation name="org.freedesktop.Accounts.DefaultValue" value="true"/>
14+ </property>
15+
16+ <property name="IncomingMessageVibrate" type="b" access="readwrite">
17+ <annotation name="org.freedesktop.Accounts.DefaultValue" value="true"/>
18+ </property>
19+
20+ <property name="IncomingMessageVibrateSilentMode" type="b" access="readwrite">
21+ <annotation name="org.freedesktop.Accounts.DefaultValue" value="true"/>
22+ </property>
23+
24 </interface>
25 </node>

Subscribers

People subscribed via source and target branches