tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+
https://www.npmjs.com/package/cordova-plugin-wifiwizard2
Apache License 2.0
123 stars 146 forks source link

WifiWizard2.java:741: error: incompatible types: Object cannot be converted to int #46

Closed duzc2 closed 6 years ago

duzc2 commented 6 years ago

i suggest change WifiWizard2.java:741

int networkIdToConnect = (int) params[1]; to int networkIdToConnect = (Integer) params[1];

cause:

platforms\android\src\android\wifiwizard2\WifiWizard2.java:741: error: incompatible types: Object cannot be converted to int int networkIdToConnect = (int) params[1];

tripflex commented 6 years ago

@arsenal942 was this PR not verified before being merged? https://github.com/tripflex/WifiWizard2/pull/43

We need to make sure to verify any major changes in PRs like this before merging them

tripflex commented 6 years ago

Resolved in latest commit, the PR should not have been merged without verifying it first, sorry about the issue

jack828 commented 6 years ago

Thanks @xLarry for resolving this! I weirdly didn't experience this issue during development.