2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-28 12:47:43 +00:00

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.
This commit is contained in:
Albert Vaca 2019-06-15 13:27:18 +02:00
parent 46cd99ba85
commit 503eaa7ca8

View File

@ -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;
*/
}
}