Merge lp:~boiko/telephony-service/preserve_call_status into lp:telephony-service
Proposed by
Gustavo Pichorim Boiko
Status: | Merged |
---|---|
Approved by: | Tiago Salem Herrmann |
Approved revision: | 777 |
Merged at revision: | 776 |
Proposed branch: | lp:~boiko/telephony-service/preserve_call_status |
Merge into: | lp:telephony-service |
Diff against target: |
164 lines (+60/-7) 7 files modified
handler/Handler.xml (+6/-0) handler/callhandler.cpp (+18/-0) handler/callhandler.h (+1/-0) handler/handlerdbus.cpp (+5/-0) handler/handlerdbus.h (+1/-0) libtelephonyservice/callmanager.cpp (+28/-7) libtelephonyservice/callmanager.h (+1/-0) |
To merge this branch: | bzr merge lp:~boiko/telephony-service/preserve_call_status |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tiago Salem Herrmann (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email:
|
Commit message
Avoid flickering the UI on client apps by addressing the following points:
- Get the "hasCalls" property value from the handler even before the telepathy observer is properly registered
- Delay the cleaning up of manager data when unregistering the observer
Description of the change
Avoid flickering the UI on client apps by addressing the following points:
- Get the "hasCalls" property value from the handler even before the telepathy observer is properly registered
- Delay the cleaning up of manager data when unregistering the observer
To post a comment you must log in.
I think there might be a case where this logic fails. ailable( ) wont be called as there are no active calls at the moment, so we will end up in an inconsistent state.
Correct me if I am wrong, but consider the case where we are on a call and switch to another app, then while dialer-app is in background the remote party hangs up. When you bring the dialer-app to foreground again and register the observer, onCallChannelAv
139 void CallManager: :onCallChannelA vailable( Tp::CallChannel Ptr channel)
140 {
141 + // if this is the first call after re-registering the observer, clear the data