summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java')
-rw-r--r--src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java b/src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java
index b60449d..1b6a3ee 100644
--- a/src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java
+++ b/src/com/cyanogenmod/setupwizard/util/SetupWizardUtils.java
@@ -101,6 +101,11 @@ public class SetupWizardUtils {
}
}
+ public static boolean hasWifi(Context context) {
+ PackageManager packageManager = context.getPackageManager();
+ return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI);
+ }
+
public static boolean hasTelephony(Context context) {
PackageManager packageManager = context.getPackageManager();
return packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);