Merge lp:~tiagosh/telepathy-ofono/speaker-mode-asynchronous into lp:telepathy-ofono

Proposed by Tiago Salem Herrmann
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 65
Merged at revision: 65
Proposed branch: lp:~tiagosh/telepathy-ofono/speaker-mode-asynchronous
Merge into: lp:telepathy-ofono
Diff against target: 12 lines (+1/-1)
1 file modified
connection.cpp (+1/-1)
To merge this branch: bzr merge lp:~tiagosh/telepathy-ofono/speaker-mode-asynchronous
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+207533@code.launchpad.net

Commit message

Update audio route asynchronously when enabling/disabling speaker mode.

Description of the change

Update audio route asynchronously.
On some devices (nexus 4) switching from/to speaker mode can take a while, so we need to avoid updating the audio route immediately.

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
Tiago Salem Herrmann (tiagosh) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.
No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
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 (https://wiki.ubuntu.com/Process/Merges/TestPlan/telepathy-ofono) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
No changes

If you changed the packaging (debian), did you subscribe a core-dev to this MP?
No changes

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 you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/telepathy-ofono) 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 fixes the problem.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'connection.cpp'
2--- connection.cpp 2014-02-13 13:00:30 +0000
3+++ connection.cpp 2014-02-20 19:08:49 +0000
4@@ -837,7 +837,7 @@
5 {
6 if (mSpeakerMode != active) {
7 mSpeakerMode = active;
8- updateAudioRoute();
9+ QMetaObject::invokeMethod(this, "updateAudioRoute", Qt::QueuedConnection);
10 Q_EMIT speakerModeChanged(active);
11 }
12 }

Subscribers

People subscribed via source and target branches