From 701c9d26cd524d4d88a6bd277eb82fb699b3f277 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Fri, 7 Oct 2016 11:31:24 +0300 Subject: [PATCH] Remove the code that requires ACCESS_NETWORK_STATE --- .../org/nativescript/widgets/Image/Fetcher.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java b/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java index d4f12638c..135ac6dc9 100644 --- a/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java +++ b/android/widgets/src/main/java/org/nativescript/widgets/Image/Fetcher.java @@ -59,7 +59,6 @@ public class Fetcher extends Resizer { */ public Fetcher(Context context) { super(context); - checkConnection(context); mHttpCacheDir = Cache.getDiskCacheDir(context, HTTP_CACHE_DIR); mPackageName = context.getPackageName(); } @@ -147,20 +146,6 @@ public class Fetcher extends Resizer { } } - /** - * Simple network connection check. - * - * @param context - */ - private void checkConnection(Context context) { - final ConnectivityManager cm = - (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); - final NetworkInfo networkInfo = cm.getActiveNetworkInfo(); - if (networkInfo == null || !networkInfo.isConnectedOrConnecting()) { - Log.e(TAG, "checkConnection - no connection found"); - } - } - /** * The main process method, which will be called by the Worker in the AsyncTask background * thread.