wifidirectplugin 0.0.5 → 0.0.6
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.
|
@@ -31,11 +31,11 @@ public class WifiDirectPlugin extends Plugin {
|
|
|
31
31
|
@Override
|
|
32
32
|
public void load() {
|
|
33
33
|
// WifiP2pManager 초기화
|
|
34
|
-
boolean isP2pSupported = getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT);
|
|
35
|
-
if (!isP2pSupported) {
|
|
36
|
-
Logger.error("WifiDirectPlugin WiFi P2P not supported on this device");
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
34
|
+
// boolean isP2pSupported = getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT);
|
|
35
|
+
// if (!isP2pSupported) {
|
|
36
|
+
// Logger.error("WifiDirectPlugin WiFi P2P not supported on this device");
|
|
37
|
+
// return;
|
|
38
|
+
// }
|
|
39
39
|
Logger.info("WifiDirectPlugin loaded");
|
|
40
40
|
manager = (WifiP2pManager) getContext().getSystemService(Context.WIFI_P2P_SERVICE);
|
|
41
41
|
channel = manager.initialize(getContext(), getActivity().getMainLooper(), null);
|