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

Commit e600b0c9 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 am: 445a2caa

Change-Id: Ia723a082502e22c222f0fb3e89c6f5aee7017a2a
parents 037d43dd 445a2caa
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3519,6 +3519,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);
                }