wifidirectplugin 1.1.2 → 1.1.3
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.
|
@@ -62,7 +62,7 @@ public class WifiDirectPlugin extends Plugin {
|
|
|
62
62
|
try {
|
|
63
63
|
context.unregisterReceiver(wifiP2pReceiver);
|
|
64
64
|
} catch (IllegalArgumentException e) {
|
|
65
|
-
Log.w(TAG, "Receiver not
|
|
65
|
+
Log.w(TAG, "Receiver not registered or already registered");
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
@PluginMethod
|
|
@@ -144,20 +144,20 @@ public class WifiDirectPlugin extends Plugin {
|
|
|
144
144
|
public void onSuccess() {
|
|
145
145
|
Log.d(TAG, "connect onSuccess Called");
|
|
146
146
|
call.resolve();
|
|
147
|
-
unload();
|
|
147
|
+
// unload();
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
@Override
|
|
151
151
|
public void onFailure(int reason) {
|
|
152
152
|
Log.e(TAG, "connect onFailure Called");
|
|
153
153
|
call.reject("Connection failed: " + reason);
|
|
154
|
-
unload();
|
|
154
|
+
// unload();
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
} catch (Exception e) {
|
|
158
158
|
Log.e(TAG, "connect exception", e);
|
|
159
159
|
call.reject("Connection exception: " + e.getMessage());
|
|
160
|
-
unload();
|
|
160
|
+
// unload();
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
}
|