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:
parent
46cd99ba85
commit
503eaa7ca8
@ -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;
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user