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

Commit 35c611c3 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of [20181704] into tm-qpr1-release.

Change-Id: Ibd2e4c2cd9b0e3d7616eb3630ceb4198662977fb
parents 405e6d65 def59895
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -3385,15 +3385,13 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                cause = DisconnectCause.IMS_MERGED_SUCCESSFULLY;
            }

            String callId = imsCall.getSession().getCallId();
            EmergencyNumberTracker emergencyNumberTracker = null;
            EmergencyNumber num = null;

            if (conn != null) {
            if (conn != null && imsCall.getSession() != null) {
                String callId = imsCall.getSession().getCallId();
                emergencyNumberTracker = conn.getEmergencyNumberTracker();
                num = conn.getEmergencyNumberInfo();
            }

                mMetrics.writeOnImsCallTerminated(mPhone.getPhoneId(), imsCall.getCallSession(),
                    reasonInfo, mCallQualityMetrics.get(callId), num,
                    getNetworkCountryIso(), emergencyNumberTracker != null
@@ -3408,6 +3406,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                    mCallQualityMetricsHistory.add(lastCallMetrics);
                }
                pruneCallQualityMetricsHistory();
            }
            mPhone.notifyImsReason(reasonInfo);

            if (conn != null) {