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

Commit 1813bdd2 authored by Nancy Chen's avatar Nancy Chen Committed by Android (Google) Code Review
Browse files

Merge "Propagate "call with" account to Telephony layer." into lmp-mr1-dev

parents 7f191ccb 5a36b6e9
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;
import android.telephony.PhoneNumberUtils;
import android.telephony.SubscriptionManager;
import android.content.ComponentName;
import android.content.Context;
import android.net.Uri;
@@ -217,6 +218,14 @@ public final class PhoneAccountRegistrar {
                return;
            }

            if (getPhoneAccount(accountHandle).hasCapabilities(
                    PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
                // If the account selected is a SIM account, propagate down to the subscription
                // record.
                long subId = getSubscriptionIdForPhoneAccount(accountHandle);
                SubscriptionManager.setDefaultVoiceSubId(subId);
            }

            mState.defaultOutgoing = accountHandle;
        }