Commit feb8faf5 authored by Mickaël Turnel's avatar Mickaël Turnel

Fixed compatibility issue for proxy information

parent d4d4c3aa
......@@ -403,7 +403,7 @@ public class AndroidPlatformHelper {
NetworkInfo networkInfo = mConnectivityManager.getActiveNetworkInfo();
connected = networkInfo != null && networkInfo.isConnected();
if (connected){
if (connected && Build.VERSION.SDK_INT >= Version.API23_MARSHMALLOW_60){
ProxyInfo proxy = mConnectivityManager.getDefaultProxy();
if (proxy != null && proxy.getHost() != null){
Log.i("The active network is using an http proxy: " + proxy.toString());
......
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