wifidirectplugin 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -332,7 +332,7 @@ public class WifiDirectPlugin extends Plugin {
|
|
|
332
332
|
if (p2pNetworkCallback != null) return;
|
|
333
333
|
|
|
334
334
|
NetworkRequest req = new NetworkRequest.Builder()
|
|
335
|
-
.addTransportType(NetworkCapabilities.
|
|
335
|
+
.addTransportType(NetworkCapabilities.TRANSPORT_WIFI_AWARE)
|
|
336
336
|
// P2P는 인터넷 capability가 없으므로 매칭을 위해 제거
|
|
337
337
|
.removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
|
|
338
338
|
.build();
|
|
@@ -423,7 +423,7 @@ public class WifiDirectPlugin extends Plugin {
|
|
|
423
423
|
Network[] networks = connectivityManager.getAllNetworks();
|
|
424
424
|
for (Network n : networks) {
|
|
425
425
|
NetworkCapabilities caps = connectivityManager.getNetworkCapabilities(n);
|
|
426
|
-
if (caps != null && caps.hasTransport(NetworkCapabilities.
|
|
426
|
+
if (caps != null && caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI_AWARE)) {
|
|
427
427
|
try {
|
|
428
428
|
connectivityManager.bindProcessToNetwork(n);
|
|
429
429
|
boundP2pNetwork = n;
|