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

Commit ac92bab3 authored by zoey chen's avatar zoey chen
Browse files

[Settings] Replace #getSubIdForPhoneAccount with #getSubscriptionId

Bug: 146823458
Test: make
Change-Id: I437a6e325112bf9d031a4eb11c28cb755c085bee
Merged-In: I437a6e325112bf9d031a4eb11c28cb755c085bee
parent e29ca94a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -47,8 +47,7 @@ public class CallsSimListDialogFragment extends SimListDialogFragment {
            return result;
        }
        for (PhoneAccountHandle handle : phoneAccounts) {
            final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle);
            final int subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount);
            final int subId = telephonyManager.getSubscriptionId(handle);

            if (subId == SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
                continue;
+1 −2
Original line number Diff line number Diff line
@@ -176,8 +176,7 @@ public class SimDialogActivity extends FragmentActivity {
        final TelephonyManager telephonyManager = getSystemService(TelephonyManager.class);

        for (PhoneAccountHandle handle : telecomManager.getCallCapablePhoneAccounts()) {
            final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle);
            if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) {
            if (subId == telephonyManager.getSubscriptionId(handle)) {
                return handle;
            }
        }