Merge lp:~tiagosh/telephony-service/vibrate_silent_mode into lp:telephony-service

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 878
Merged at revision: 880
Proposed branch: lp:~tiagosh/telephony-service/vibrate_silent_mode
Merge into: lp:telephony-service
Diff against target: 38 lines (+5/-5)
2 files modified
libtelephonyservice/greetercontacts.cpp (+4/-4)
libtelephonyservice/ringtone.cpp (+1/-1)
To merge this branch: bzr merge lp:~tiagosh/telephony-service/vibrate_silent_mode
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+230423@code.launchpad.net

Commit message

- Reduce vibration duration for text messages
- Fix vibration in silent mode options for calls/messages

Description of the change

- Reduce vibration duration for text messages
- Fix vibration in silent mode options for calls/messages

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
Yes

Did CI run pass? If not, please explain why.
Yes

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes

Code looks good and works as expected!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libtelephonyservice/greetercontacts.cpp'
2--- libtelephonyservice/greetercontacts.cpp 2014-07-07 19:18:18 +0000
3+++ libtelephonyservice/greetercontacts.cpp 2014-08-12 03:26:54 +0000
4@@ -151,8 +151,8 @@
5
6 bool GreeterContacts::incomingCallVibrate()
7 {
8- if (silentMode() && getUserValue("com.ubuntu.touch.AccountsService.Sound", "IncomingCallVibrateSilentMode").toBool()) {
9- return true;
10+ if (silentMode()) {
11+ return getUserValue("com.ubuntu.touch.AccountsService.Sound", "IncomingCallVibrateSilentMode").toBool();
12 }
13 if (!mIncomingCallVibrate.isValid()) {
14 mIncomingCallVibrate = getUserValue("com.ubuntu.touch.AccountsService.Sound", "IncomingCallVibrate");
15@@ -162,8 +162,8 @@
16
17 bool GreeterContacts::incomingMessageVibrate()
18 {
19- if (silentMode() && getUserValue("com.ubuntu.touch.AccountsService.Sound", "IncomingMessageVibrateSilentMode").toBool()) {
20- return true;
21+ if (silentMode()) {
22+ return getUserValue("com.ubuntu.touch.AccountsService.Sound", "IncomingMessageVibrateSilentMode").toBool();
23 }
24 if (!mIncomingMessageVibrate.isValid()) {
25 mIncomingMessageVibrate = getUserValue("com.ubuntu.touch.AccountsService.Sound", "IncomingMessageVibrate");
26
27=== modified file 'libtelephonyservice/ringtone.cpp'
28--- libtelephonyservice/ringtone.cpp 2014-07-07 19:18:18 +0000
29+++ libtelephonyservice/ringtone.cpp 2014-08-12 03:26:54 +0000
30@@ -29,7 +29,7 @@
31 mCallAudioPlaylist.setPlaybackMode(QMediaPlaylist::Loop);
32 mCallAudioPlaylist.addMedia(QUrl::fromLocalFile(GreeterContacts::instance()->incomingCallSound()));
33 mCallAudioPlaylist.setCurrentIndex(0);
34- mVibrateEffect.setDuration(1000);
35+ mVibrateEffect.setDuration(500);
36 }
37
38 void RingtoneWorker::playIncomingCallSound()

Subscribers

People subscribed via source and target branches