From 503eaa7ca88a250ba31f6b83d7710aebc75ed798 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Sat, 15 Jun 2019 13:27:18 +0200 Subject: [PATCH] Remove overly-complicated code that isn't working well For some users, it was giving false positives or even crashing. Detecting this across all Androids without an actual API doesn't seem practical. --- src/org/kde/kdeconnect/Helpers/NetworkHelper.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/org/kde/kdeconnect/Helpers/NetworkHelper.java b/src/org/kde/kdeconnect/Helpers/NetworkHelper.java index b6fc16e8..7861ef20 100644 --- a/src/org/kde/kdeconnect/Helpers/NetworkHelper.java +++ b/src/org/kde/kdeconnect/Helpers/NetworkHelper.java @@ -1,17 +1,14 @@ package org.kde.kdeconnect.Helpers; import android.content.Context; -import android.net.ConnectivityManager; -import android.net.Network; -import android.net.NetworkInfo; -import android.util.Log; - -import java.io.FileReader; -import java.io.LineNumberReader; public class NetworkHelper { public static boolean isOnMobileNetwork(Context context) { + + return false; + + /* if (context == null) { return false; } @@ -52,6 +49,8 @@ public class NetworkHelper { Log.e("isOnMobileNetwork", "Something went wrong, but this is non-critical.", e); } return false; + + */ } }