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

Commit 16b5df58 authored by Roshan Pius's avatar Roshan Pius Committed by Android Git Automerger
Browse files

am fa3b7b6a: am 17010e55: Disallow resetting of emergency flag in telecom.

* commit 'fa3b7b6a':
  Disallow resetting of emergency flag in telecom.
parents f53e753d fa3b7b6a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -634,8 +634,12 @@ public class Call implements CreateConnectionResponse {
                }
            }

            mIsEmergencyCall = mHandle != null && PhoneNumberUtils.isLocalEmergencyNumber(mContext,
                    mHandle.getSchemeSpecificPart());
            // Let's not allow resetting of the emergency flag. Once a call becomes an emergency
            // call, it will remain so for the rest of it's lifetime.
            if (!mIsEmergencyCall) {
                mIsEmergencyCall = mHandle != null && PhoneNumberUtils.isLocalEmergencyNumber(
                        mContext, mHandle.getSchemeSpecificPart());
            }
            startCallerInfoLookup();
            for (Listener l : mListeners) {
                l.onHandleChanged(this);