summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-09-17 13:48:55 -0700
committercretin45 <cretin45@gmail.com>2015-09-17 13:48:55 -0700
commitedaab88f133dee6a4a1281647d98ba4a24d34dfb (patch)
treea4c5ce5ab73e6d16a21665e8f5e92fb933449468 /src/com/cyanogenmod/setupwizard/setup
parentfa1be773ce380d28da440ce6e9481b582bd95fb4 (diff)
downloadpackages_apps_SetupWizard-edaab88f133dee6a4a1281647d98ba4a24d34dfb.zip
packages_apps_SetupWizard-edaab88f133dee6a4a1281647d98ba4a24d34dfb.tar.gz
packages_apps_SetupWizard-edaab88f133dee6a4a1281647d98ba4a24d34dfb.tar.bz2
SetupWizard: Tweak logic for showing/hiding sim missing page
CYNGNOS-1021 Change-Id: I6139ca4368eb1bf49b07a95ac60ca28831e2cd3a
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;
}
}