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

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

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

* commit '17010e55':
  Disallow resetting of emergency flag in telecom.
parents 6964cca8 17010e55
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);