Skip to content

Commit

Permalink
Merge "Fix to handle duplicate call id for conference call" into q-ke…
Browse files Browse the repository at this point in the history
…ystone-qcom-dev
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Oct 10, 2019
2 parents 86397c8 + 18a36d5 commit ef95607
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions telephony/java/android/telephony/ims/ImsCallSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -1173,17 +1173,8 @@ public void callSessionMergeStarted(IImsCallSession newSession, ImsCallProfile p
public void callSessionMergeComplete(IImsCallSession newSession) {
if (mListener != null) {
if (newSession != null) {
// Check if the active session is the same session that was
// active before the merge request was sent.
ImsCallSession validActiveSession = ImsCallSession.this;
try {
if (!Objects.equals(miSession.getCallId(), newSession.getCallId())) {
// New session created after conference
validActiveSession = new ImsCallSession(newSession);
}
} catch (RemoteException rex) {
Log.e(TAG, "callSessionMergeComplete: exception for getCallId!");
}
// New session created after conference
ImsCallSession validActiveSession = new ImsCallSession(newSession);
mListener.callSessionMergeComplete(validActiveSession);
} else {
// Session already exists. Hence no need to pass
Expand Down

0 comments on commit ef95607

Please sign in to comment.