summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2016-09-07 17:44:31 +0100
committerAbhisek Devkota <ciwrl@lineageos.org>2017-01-14 18:33:13 -0800
commit65d6ac1299720f8cc8e40cc8cc875fe3da2337dd (patch)
tree0462819a6333ab8b1b072b6f5afb872a54d9150c /src/com/cyanogenmod/setupwizard/setup
parent35b91edd9a0124286a48cce45f2dfaf544bf5148 (diff)
downloadpackages_apps_SetupWizard-65d6ac1299720f8cc8e40cc8cc875fe3da2337dd.zip
packages_apps_SetupWizard-65d6ac1299720f8cc8e40cc8cc875fe3da2337dd.tar.gz
packages_apps_SetupWizard-65d6ac1299720f8cc8e40cc8cc875fe3da2337dd.tar.bz2
SetupWizard: Don't show wifi setup on wifi-less devices
Altough uncommon, development boards and emulators don't have a wireless interface. In those cases, don't show the wireless setup page. Change-Id: I0017b2277defdccf7f0bd61cb9606254509f78cc
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
index 03f4ffd..7a20c58 100644
--- a/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
+++ b/src/com/cyanogenmod/setupwizard/setup/CMSetupWizardData.java
@@ -51,7 +51,9 @@ public class CMSetupWizardData extends AbstractSetupData {
pages.add(new BluetoothSetupPage(mContext, this));
}
pages.add(new WelcomePage(mContext, this));
- pages.add(new WifiSetupPage(mContext, this));
+ if (SetupWizardUtils.hasWifi(mContext)) {
+ pages.add(new WifiSetupPage(mContext, this));
+ }
if (SetupWizardUtils.hasTelephony(mContext)) {
pages.add(new SimCardMissingPage(mContext, this)
.setHidden(isSimInserted()));