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

Commit 12456b58 authored by Jordan Liu's avatar Jordan Liu Committed by Gerrit Code Review
Browse files

Merge "Do not use SubscriptionManager.getSubId"

parents a95ceff6 79d26c55
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -2244,11 +2244,7 @@ public class ServiceStateTracker extends Handler {
                showSpn = false;
            }

            int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
            int[] subIds = SubscriptionManager.getSubId(mPhone.getPhoneId());
            if (subIds != null && subIds.length > 0) {
                subId = subIds[0];
            }
            int subId = mPhone.getSubId();

            // Update SPN_STRINGS_UPDATED_ACTION IFF any value changes
            if (mSubId != subId ||
@@ -2290,11 +2286,7 @@ public class ServiceStateTracker extends Handler {

            showPlmn = plmn != null;

            int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
            int[] subIds = SubscriptionManager.getSubId(mPhone.getPhoneId());
            if (subIds != null && subIds.length > 0) {
                subId = subIds[0];
            }
            int subId = mPhone.getSubId();

            if (!TextUtils.isEmpty(plmn) && !TextUtils.isEmpty(wfcVoiceSpnFormat)) {
                // In Wi-Fi Calling mode show SPN+WiFi