From 66a971c14691514230ff0a1f1a19a29c194c74ee Mon Sep 17 00:00:00 2001 From: lado Date: Fri, 22 Mar 2013 01:04:38 +0100 Subject: SharedPreferences refactored --- vdrmanager/src/org/fueri/reeldroid/network/DeviceManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vdrmanager/src/org/fueri/reeldroid') diff --git a/vdrmanager/src/org/fueri/reeldroid/network/DeviceManager.java b/vdrmanager/src/org/fueri/reeldroid/network/DeviceManager.java index 59e9e3a..427ff35 100644 --- a/vdrmanager/src/org/fueri/reeldroid/network/DeviceManager.java +++ b/vdrmanager/src/org/fueri/reeldroid/network/DeviceManager.java @@ -61,10 +61,12 @@ public class DeviceManager { WifiManager wifiManager = (WifiManager) context .getSystemService(Context.WIFI_SERVICE); - boolean wifiStatus = (conMgr - .getNetworkInfo(ConnectivityManager.TYPE_WIFI)).isConnected(); + boolean netStatus = conMgr + .getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected() + || conMgr.getNetworkInfo(ConnectivityManager.TYPE_ETHERNET) + .isConnected(); - if (wifiStatus == false) { + if (netStatus == false) { return list; } -- cgit v1.2.3