summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-04-27 13:20:13 -0700
committercretin45 <cretin45@gmail.com>2015-05-04 16:03:08 -0700
commitac84dc0fce1396307d56bea5e68a845f8e77ff90 (patch)
treeb28fd94e62ba70924133c474c9c4af3d4c58df5b /src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
parent676081a4adc9db4cc199c4ac4db103b7be650951 (diff)
downloadpackages_apps_SetupWizard-ac84dc0fce1396307d56bea5e68a845f8e77ff90.zip
packages_apps_SetupWizard-ac84dc0fce1396307d56bea5e68a845f8e77ff90.tar.gz
packages_apps_SetupWizard-ac84dc0fce1396307d56bea5e68a845f8e77ff90.tar.bz2
Setupwizard: Fix msim NPE where sim only in slot 2
Change-Id: I919129185cb49c51f9f02d9718e116e7d02b0d2c
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
index e5dcacc..c61f6a1 100644
--- a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
+++ b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
@@ -20,6 +20,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
+import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import com.android.internal.telephony.TelephonyIntents;
@@ -127,7 +128,7 @@ public class CMSetupWizardData extends AbstractSetupData {
ChooseDataSimPage chooseDataSimPage =
(ChooseDataSimPage) getPage(ChooseDataSimPage.TAG);
if (chooseDataSimPage != null) {
- chooseDataSimPage.setHidden(!isSimInserted());
+ chooseDataSimPage.setHidden(!allSimsInserted());
}
}
@@ -185,7 +186,7 @@ public class CMSetupWizardData extends AbstractSetupData {
return false;
}
}
- return true;
+ return simSlotCount == SubscriptionManager.from(mContext).getActiveSubscriptionInfoCount();
}
}