mirror of https://github.com/M66B/NetGuard.git
Merge pull request #203 from marco-scavuzzo/revert-202-master
Revert "Workaround for devices with 3G/LTE returning false when calling hasSy…"
This commit is contained in:
commit
4511ea283c
|
@ -84,8 +84,7 @@ public class Util {
|
||||||
|
|
||||||
public static boolean hasTelephony(Context context) {
|
public static boolean hasTelephony(Context context) {
|
||||||
PackageManager pm = context.getPackageManager();
|
PackageManager pm = context.getPackageManager();
|
||||||
return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) ||
|
return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
|
||||||
context.getSystemService(Context.TELEPHONY_SERVICE)!=null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean hasWifi(Context context) {
|
public static boolean hasWifi(Context context) {
|
||||||
|
|
Loading…
Reference in New Issue