Commit 503eaa7c authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

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.
parent 46cd99ba
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;
*/
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment