diff options
author | lado <herrlado@gmail.com> | 2012-10-03 00:15:59 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-10-03 00:15:59 +0200 |
commit | 423556f311a02ad55534c8fd28a41f91f1ce4dee (patch) | |
tree | 898ec5220c3ab8a5097daa5c8850e9aef43a92ec /vdrmanager | |
parent | e81093fdd76ce918112a1f6d81c014136d7dba21 (diff) | |
download | vdr-manager-423556f311a02ad55534c8fd28a41f91f1ce4dee.tar.gz vdr-manager-423556f311a02ad55534c8fd28a41f91f1ce4dee.tar.bz2 |
fixing the check for connected network
Diffstat (limited to 'vdrmanager')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java | 6 | ||||
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java index 466a31d..f402ed7 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java @@ -34,6 +34,12 @@ public abstract class BaseActivity<Result, T extends ListView> extends ICSBaseAc public static final int MENU_REFRESH = 99; protected T listView; + + @Override + public boolean onSearchRequested() { + // TODO Auto-generated method stub + return super.onSearchRequested(); + } protected ViewFlipper flipper; diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java index 50e472c..7dbf7ed 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java @@ -301,8 +301,8 @@ public class Utils { ConnectivityManager cm = (ConnectivityManager) ctx.getSystemService(Context.CONNECTIVITY_SERVICE); // test for connection if (cm.getActiveNetworkInfo() != null - && cm.getActiveNetworkInfo().isAvailable() - && cm.getActiveNetworkInfo().isConnected()) { + && cm.getActiveNetworkInfo().isConnectedOrConnecting() + ){ return true; } return false; |