Android: make internal Java code for QtAndroidNetwork private
This Java code is mainly an internal implementation detail for the Qt for Android plugin, and isn't meant to be public in the first place. Task-number: QTBUG-126371 Change-Id: I5149a583eb2695ff97203d81a059adcc5d1a69a5 Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io> (cherry picked from commit 900911abee41fb424312dc6675baa47b0792635a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
5888465f16
commit
ef88e293e8
@ -11,7 +11,7 @@ import android.net.ConnectivityManager;
|
||||
import android.net.Proxy;
|
||||
import android.net.ProxyInfo;
|
||||
|
||||
public class QtNetwork
|
||||
class QtNetwork
|
||||
{
|
||||
private static final String LOG_TAG = "QtNetwork";
|
||||
private static ProxyReceiver m_proxyReceiver = null;
|
||||
@ -29,7 +29,7 @@ public class QtNetwork
|
||||
|
||||
private QtNetwork() {}
|
||||
|
||||
public static void registerReceiver(final Context context)
|
||||
static void registerReceiver(final Context context)
|
||||
{
|
||||
synchronized (m_lock) {
|
||||
if (m_proxyReceiver == null) {
|
||||
@ -40,7 +40,7 @@ public class QtNetwork
|
||||
}
|
||||
}
|
||||
|
||||
public static void unregisterReceiver(final Context context)
|
||||
static void unregisterReceiver(final Context context)
|
||||
{
|
||||
synchronized (m_lock) {
|
||||
if (m_proxyReceiver == null)
|
||||
@ -50,12 +50,12 @@ public class QtNetwork
|
||||
}
|
||||
}
|
||||
|
||||
public static ConnectivityManager getConnectivityManager(final Context context)
|
||||
static ConnectivityManager getConnectivityManager(final Context context)
|
||||
{
|
||||
return (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
}
|
||||
|
||||
public static ProxyInfo getProxyInfo(final Context context)
|
||||
static ProxyInfo getProxyInfo(final Context context)
|
||||
{
|
||||
if (m_proxyInfo == null)
|
||||
m_proxyInfo = (ProxyInfo)getConnectivityManager(context).getDefaultProxy();
|
||||
|
Loading…
x
Reference in New Issue
Block a user