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

Commit 8d57e376 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Prevent TelecomManager#endCall from ending emergency calls.

Test: Manual test with test emergency number.
Fixes: 132438333
Change-Id: I4c29a707ec06059b984b61da7d0425a6082476aa
parent 45c210fe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1580,6 +1580,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 {