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

Commit d6fb73a8 authored by Sandeep Gutta's avatar Sandeep Gutta Committed by Linux Build Service Account
Browse files

Telephony(MSIM): Fix to do not allow both SIM deactivation

Use proper SubInfo record object to do not allow
user to deactivate both SIMs on DSDS devices.

Change-Id: I6f56d819367272b3a009c7a8133709c643e8bd84
CRs-Fixed: 893504
parent 7b727862
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -573,7 +573,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
                    mSubscriptionManager.getActiveSubscriptionInfoList();
            if (subInfoLists != null) {
                for (SubscriptionInfo subInfo : subInfoLists) {
                    if (getProvisionStatus(mSir.getSimSlotIndex())
                    if (getProvisionStatus(subInfo.getSimSlotIndex())
                            == PROVISIONED) activeSubInfoCount++;
                }
            }