Android: remove unused imports and fix warning on network java code
Pick-to: 6.2 Change-Id: Ifa69c04f7f2e75751b6f8a157d04f3870f0c0eb1 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
91d8443f6d
commit
22e330db48
@ -43,7 +43,6 @@ import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.util.Log;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.Proxy;
|
||||
import android.net.ProxyInfo;
|
||||
|
@ -39,10 +39,8 @@
|
||||
|
||||
package org.qtproject.qt.android.networkinformation;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.ConnectivityManager.NetworkCallback;
|
||||
import android.net.NetworkRequest;
|
||||
@ -158,6 +156,7 @@ public class QtAndroidNetworkInformation {
|
||||
return AndroidConnectivity.Unknown;
|
||||
}
|
||||
|
||||
@SuppressLint("MissingPermission")
|
||||
public static void registerReceiver(final Context context) {
|
||||
synchronized (m_lock) {
|
||||
if (m_callback == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user