Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99a2c881 authored by rongmei.li's avatar rongmei.li Committed by Tyler Gunn
Browse files

Failed to show hold call when user click swap and merge simultaneously

Set EVENT_MERGE_START for foregroundConnection and backgroundConnection
but don't set EVENT_MERGE_COMPLETE when there is ImsException

Bug: 121105030
Change-Id: I08c189b976227ada1298a864f6f4ba70c4ffb7f9
parent be212f70
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1883,6 +1883,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            fgImsCall.merge(bgImsCall);
        } catch (ImsException e) {
            log("conference " + e.getMessage());
            handleConferenceFailed(foregroundConnection, backgroundConnection);
        }
    }

@@ -4811,4 +4812,15 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
    public ArrayList<ImsPhoneConnection> getConnections() {
        return mConnections;
    }

    private void handleConferenceFailed(ImsPhoneConnection fgConnection,
            ImsPhoneConnection bgConnection) {
        if (fgConnection != null) {
            fgConnection.handleMergeComplete();
        }
        if (bgConnection != null) {
            bgConnection.handleMergeComplete();
        }
        mPhone.notifySuppServiceFailed(Phone.SuppService.CONFERENCE);
    }
}