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

Commit fa67404f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Disable respond via sms feature based on config"

parents 8304fce5 8c328baf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1129,6 +1129,12 @@ final class Call implements CreateConnectionResponse {
            return false;
        }

        if (!mContext.getResources()
                .getBoolean(com.android.internal.R.bool.config_reject_call_via_sms_enabled)) {
            //"Respond via SMS" feature is disabled by the above config.
            return false;
        }

        if (PhoneNumberUtils.isUriNumber(getHandle().toString())) {
            // The incoming number is actually a URI (i.e. a SIP address),
            // not a regular PSTN phone number, and we can't send SMSes to