diff options
author | Sandeep Gutta <sangutta@codeaurora.org> | 2015-09-13 22:09:23 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:21:19 -0600 |
commit | d6fb73a880118eeb6fd4da7b0f364f2ce01df1ca (patch) | |
tree | 184c1009a8d5854592a5ac67849e1b0a3688f638 | |
parent | 7b72786252395b83f2747117f124a9bc1875c90e (diff) | |
download | packages_apps_Settings-d6fb73a880118eeb6fd4da7b0f364f2ce01df1ca.zip packages_apps_Settings-d6fb73a880118eeb6fd4da7b0f364f2ce01df1ca.tar.gz packages_apps_Settings-d6fb73a880118eeb6fd4da7b0f364f2ce01df1ca.tar.bz2 |
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
-rw-r--r-- | src/com/android/settings/sim/SimSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } } |