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

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

Merge "Revert "Replace callers of SmsApplication with user-aware""

parents abe51ac9 bbe91661
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -3317,15 +3317,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;
        }