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

Commit 445a2caa authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "IMS: Set emergency call extra for network identified emergency call"...

Merge "IMS: Set emergency call extra for network identified emergency call" am: 8beb453c am: 385eb7be

Change-Id: I7cdafdf96b3add8367ef727090293bb4459667d5
parents f65a10b7 385eb7be
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3520,6 +3520,15 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                    Connection newConnection =
                            mPhone.getDefaultPhone().dial(mLastDialString, mLastDialArgs);
                    oldConnection.onOriginalConnectionReplaced(newConnection);

                    final ImsCall imsCall = mForegroundCall.getImsCall();
                    final ImsCallProfile callProfile = imsCall.getCallProfile();
                    /* update EXTRA_EMERGENCY_CALL for clients to infer
                       from this extra that the call is emergency call */
                    callProfile.setCallExtraBoolean(
                            ImsCallProfile.EXTRA_EMERGENCY_CALL, true);
                    ImsPhoneConnection conn = findConnection(imsCall);
                    conn.updateExtras(imsCall);
                } catch (CallStateException e) {
                    sendCallStartFailedDisconnect(callInfo.first, callInfo.second);
                }