From a912fa829fd60b9d1fb3e10a09516d0b5d69abb9 Mon Sep 17 00:00:00 2001 From: cretin45 Date: Fri, 30 Jan 2015 13:56:47 -0800 Subject: [PATCH] SetupWizard: Use telephony check Change-Id: If888fd9dc5865a7d131d18db38be870a8569eeb0 --- src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java index e5e2fb8..c8eb4eb 100644 --- a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java +++ b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java @@ -53,7 +53,7 @@ public class CMSetupWizardData extends AbstractSetupData { ArrayList pages = new ArrayList(); pages.add(new WelcomePage(mContext, this)); pages.add(new WifiSetupPage(mContext, this)); - if (TelephonyManager.from(mContext).getSimCount() > 0) { + if (SetupWizardUtils.hasTelephony(mContext)) { pages.add(new SimCardMissingPage(mContext, this).setHidden(true)); } if (SetupWizardUtils.isMultiSimDevice(mContext)) {