From 906b713fc9369fb6b3fe38cc66694bdd3d5a447a Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Wed, 21 Nov 2018 15:21:07 +0200 Subject: [PATCH] android wifi update --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e7178f2..5a9dd34 100644 --- a/README.md +++ b/README.md @@ -512,11 +512,11 @@ It will turn WiFi off on the creation of the first Acivity. ```js var WifiManager = Java.use("android.net.wifi.WifiManager"); -Java.use("android.app.Activity").onCreate.overload('android.os.Bundle').implementation = function() { +Java.use("android.app.Activity").onCreate.overload("android.os.Bundle").implementation = function(bundle) { var wManager = Java.cast(this.getSystemService("wifi"), WifiManager); - console.log('isWifiEnabled', wManager.isWifiEnabled()); + console.log('isWifiEnabled ?', wManager.isWifiEnabled()); wManager.setWifiEnabled(false); - return this.$init(); + this.$init(bundle); } ```