We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 420c704 + d5c375b commit 9cabe4cCopy full SHA for 9cabe4c
1 file changed
android/src/main/java/com/devstepbcn/wifi/AndroidWifiModule.java
@@ -46,7 +46,7 @@ public class AndroidWifiModule extends ReactContextBaseJavaModule {
46
//Constructor
47
public AndroidWifiModule(ReactApplicationContext reactContext) {
48
super(reactContext);
49
- wifi = (WifiManager)reactContext.getSystemService(Context.WIFI_SERVICE);
+ wifi = (WifiManager)reactContext.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
50
context = (ReactApplicationContext) getReactApplicationContext();
51
}
52
0 commit comments