SetupWizard: Use telephony check

Change-Id: If888fd9dc5865a7d131d18db38be870a8569eeb0
This commit is contained in:
cretin45 2015-01-30 13:56:47 -08:00
parent a96968d996
commit a912fa829f

View File

@ -53,7 +53,7 @@ public class CMSetupWizardData extends AbstractSetupData {
ArrayList<Page> pages = new ArrayList<Page>();
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)) {