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

Commit 8c328baf authored by Ravindra's avatar Ravindra Committed by Gerrit - the friendly Code Review server
Browse files

Disable respond via sms feature based on config

Disable Respond via sms feature  for incoming call
if config_reject_call_via_sms_enabled is set to false.

Change-Id: I473df978f0494e9830c718529b8fc13ea5dc126e
CRs-Fixed: 771780
parent 8304fce5
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