summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
index 9d1332d..3e51bdb 100644
--- a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
+++ b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
@@ -124,10 +124,14 @@ public class CMSetupWizardData extends AbstractSetupData {
private void showHideSimMissingPage() {
SimCardMissingPage simCardMissingPage =
(SimCardMissingPage) getPage(SimCardMissingPage.TAG);
- if (simCardMissingPage != null && isSimInserted()) {
- simCardMissingPage.setHidden(true);
- if (isCurrentPage(simCardMissingPage)) {
- onNextPage();
+ if (simCardMissingPage != null) {
+ if (isSimInserted()) {
+ simCardMissingPage.setHidden(true);
+ if (isCurrentPage(simCardMissingPage)) {
+ onNextPage();
+ }
+ } else {
+ simCardMissingPage.setHidden(false);
}
}
}
@@ -183,7 +187,8 @@ public class CMSetupWizardData extends AbstractSetupData {
continue;
}
if (state != TelephonyManager.SIM_STATE_ABSENT
- && state != TelephonyManager.SIM_STATE_UNKNOWN) {
+ && state != TelephonyManager.SIM_STATE_UNKNOWN
+ && state != TelephonyManager.SIM_STATE_NOT_READY) {
return true;
}
}