From d6fb73a880118eeb6fd4da7b0f364f2ce01df1ca Mon Sep 17 00:00:00 2001 From: Sandeep Gutta Date: Sun, 13 Sep 2015 22:09:23 +0530 Subject: 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 --- src/com/android/settings/sim/SimSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/sim/SimSettings.java b/src/com/android/settings/sim/SimSettings.java index 7b2dd10..b8f34aa 100644 --- a/src/com/android/settings/sim/SimSettings.java +++ b/src/com/android/settings/sim/SimSettings.java @@ -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++; } } -- cgit v1.1