Skip to content

Commit 9281e07

Browse files
authored
Update AndroidWifiModule.java
The removed code cause appearing a new wrong configuration for Android 8. If remove this one everything will be ok. According to this fork - https://github.com/cyphereza/react-native-android-wifi/blob/master/android/src/main/java/com/devstepbcn/wifi/AndroidWifiModule.java
1 parent 24bc91d commit 9281e07

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

android/src/main/java/com/devstepbcn/wifi/AndroidWifiModule.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ public Boolean connectTo(ScanResult result, String password, String ssid) {
206206
//Make new configuration
207207
WifiConfiguration conf = new WifiConfiguration();
208208

209-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
210-
conf.SSID = ssid;
211-
} else {
212-
conf.SSID = "\"" + ssid + "\"";
213-
}
209+
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
210+
// conf.SSID = ssid;
211+
// } else {
212+
conf.SSID = "\"" + ssid + "\"";
213+
// }
214214

215215
String capabilities = result.capabilities;
216216

0 commit comments

Comments
 (0)