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

Commit 9154e7b4 authored by Thomas Nguyen's avatar Thomas Nguyen
Browse files

Rename EVENT_DISPLAY_SOS_MESSAGE

Bug: 305030915
Test: SMS, MMS, call with live network.
atest SatelliteSOSMessageRecommenderTest TelephonyConnectionServiceTest ImsCallingTest
Manually triggered an emergency call and verify the log as expected.

Change-Id: I6c8a9e1d90021fc4c029eb7de2534149de1acfc8
parent 49d60220
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
package com.android.server.telecom;

import static android.provider.CallLog.Calls.MISSED_REASON_NOT_MISSED;
import static android.telephony.TelephonyManager.EVENT_DISPLAY_SOS_MESSAGE;
import static android.telephony.TelephonyManager.EVENT_DISPLAY_EMERGENCY_MESSAGE;

import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -4236,8 +4236,8 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
                l.onReceivedCallQualityReport(this, callQuality);
            }
        } else {
            if (event.equals(EVENT_DISPLAY_SOS_MESSAGE) && !isEmergencyCall()) {
                Log.w(this, "onConnectionEvent: EVENT_DISPLAY_SOS_MESSAGE is sent "
            if (event.equals(EVENT_DISPLAY_EMERGENCY_MESSAGE) && !isEmergencyCall()) {
                Log.w(this, "onConnectionEvent: EVENT_DISPLAY_EMERGENCY_MESSAGE is sent "
                        + "without an emergency call");
                return;
            }