mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Remove network type information from NetworkUtils (#4996)
* Remove network type information from NetworkUtils * Ignore dependent tests
This commit is contained in:
parent
e5e5a8df91
commit
d45123d53e
2 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,8 @@ public class NetworkUtils {
|
|||
return NetworkConnectionType.WIFI;
|
||||
}
|
||||
|
||||
// TODO for Android 12+ request permission from user is mandatory
|
||||
/*
|
||||
int mobileNetwork = telephonyManager.getNetworkType();
|
||||
switch (mobileNetwork) {
|
||||
case TelephonyManager.NETWORK_TYPE_GPRS:
|
||||
|
|
@ -71,6 +73,8 @@ public class NetworkUtils {
|
|||
default:
|
||||
return NetworkConnectionType.UNKNOWN;
|
||||
}
|
||||
*/
|
||||
return NetworkConnectionType.UNKNOWN;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue