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
This commit is contained in:
@@ -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()));
|
||||
|
Reference in New Issue
Block a user