summaryrefslogtreecommitdiffstats
path: root/src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java')
-rw-r--r--src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java b/src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java
index 249ffe61a5..af6c20463c 100644
--- a/src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java
+++ b/src/network/android/jar/src/org/qtproject/qt5/android/network/QtNetwork.java
@@ -43,6 +43,7 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
+import android.os.Build;
import android.util.Log;
import android.net.ConnectivityManager;
import android.net.Proxy;
@@ -94,7 +95,7 @@ public class QtNetwork
public static ProxyInfo getProxyInfo(final Context context)
{
- if (m_proxyInfo == null)
+ if (m_proxyInfo == null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
m_proxyInfo = (ProxyInfo)getConnectivityManager(context).getDefaultProxy();
return m_proxyInfo;
}