summaryrefslogtreecommitdiff
path: root/vdrmanager/src/org/fueri/reeldroid
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2013-03-22 01:04:38 +0100
committerlado <herrlado@gmail.com>2013-03-22 01:04:38 +0100
commit66a971c14691514230ff0a1f1a19a29c194c74ee (patch)
treefc4dd2074672dead53149fb4badaba7b799097a8 /vdrmanager/src/org/fueri/reeldroid
parent21d97e639e711c0f261a9590866452360bc70def (diff)
downloadvdr-manager-66a971c14691514230ff0a1f1a19a29c194c74ee.tar.gz
vdr-manager-66a971c14691514230ff0a1f1a19a29c194c74ee.tar.bz2
SharedPreferences refactored
Diffstat (limited to 'vdrmanager/src/org/fueri/reeldroid')
-rw-r--r--vdrmanager/src/org/fueri/reeldroid/network/DeviceManager.java8
1 files changed, 5 insertions, 3 deletions
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;
}