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

Commit bbe91661 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Android (Google) Code Review
Browse files

Revert "Replace callers of SmsApplication with user-aware"

This reverts commit f3bdaf21.

Reason for revert: b/260853937

Change-Id: I79c705d5ff895cd1a3033d2b789b5384590fed7a
parent f3bdaf21
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -3286,15 +3286,9 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
            return false;
        }

        if (!isSimCall()) {
            // Incoming calls to a specific sim can only respond back using SMS.
            return false;
        }

        // Is there a valid SMS application on the phone?
        TelephonyManager simTm = mContext.getSystemService(TelephonyManager.class)
                .createForPhoneAccountHandle(getTargetPhoneAccount());
        if ((simTm == null) || (simTm.getAndUpdateDefaultRespondViaMessageApplication() == null)) {
        if (mContext.getSystemService(TelephonyManager.class)
                .getAndUpdateDefaultRespondViaMessageApplication() == null) {
            return false;
        }