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

Commit 136e82f7 authored by Tyler Gunn's avatar Tyler Gunn Committed by Android (Google) Code Review
Browse files

Merge "Prevent TelecomManager#endCall from ending emergency calls." into qt-dev

parents f07a8fdc 32bb2411
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1805,6 +1805,11 @@ public class TelecomServiceImpl {
        }

        if (call != null) {
            if (call.isEmergencyCall()) {
                android.util.EventLog.writeEvent(0x534e4554, "132438333", -1, "");
                return false;
            }

            if (call.getState() == CallState.RINGING) {
                call.reject(false /* rejectWithMessage */, null, callingPackage);
            } else {