From 423556f311a02ad55534c8fd28a41f91f1ce4dee Mon Sep 17 00:00:00 2001 From: lado Date: Wed, 3 Oct 2012 00:15:59 +0200 Subject: fixing the check for connected network --- vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java | 6 ++++++ vdrmanager/src/de/bjusystems/vdrmanager/gui/Utils.java | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'vdrmanager/src/de/bjusystems') 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 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; -- cgit v1.2.3