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

Commit 05a5c1f1 authored by Tyler Gunn's avatar Tyler Gunn Committed by Gerrit Code Review
Browse files

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

parents 99ba3d7f 99a2c881
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1892,6 +1892,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            fgImsCall.merge(bgImsCall);
        } catch (ImsException e) {
            log("conference " + e.getMessage());
            handleConferenceFailed(foregroundConnection, backgroundConnection);
        }
    }

@@ -4834,4 +4835,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);
    }
}