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

Commit d16c11b5 authored by Pranav Madapurmath's avatar Pranav Madapurmath Committed by Android (Google) Code Review
Browse files

Merge "Prevent reset of EmergencyCallDiagnosticLogger active call timestamp" into main

parents b817d2ac fba24878
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -339,14 +339,13 @@ public class EmergencyCallDiagnosticLogger extends CallsManagerListenerBase
    @Override
    public void onCallStateChanged(Call call, int oldState, int newState) {

        if (call != null && mEmergencyCallsMap.get(call) != null && newState == CallState.ACTIVE) {
        CallEventTimestamps ts = mEmergencyCallsMap.get(call);
            if (ts != null) {
        if (call != null && ts != null && newState == CallState.ACTIVE
                && ts.getCallActiveTime() == 0) {
            long currentTime = mClockProxy.currentTimeMillis();
            ts.setCallActiveTime(currentTime);
        }
    }
    }

    private void dumpDiagnosticDataFromDropbox(IndentingPrintWriter pw) {
        pw.increaseIndent();