Created
December 30, 2014 03:45
-
-
Save EragonJ/568a94e39c0f2961dfdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (wifiManager) { | |
this._suspend('wifi'); | |
// make sure ril.ignore.mutex is set before turning off wifi-tethering | |
var req = SettingsListener.getSettingsLock().set({ | |
'ril.ignore.mutex': true | |
}); | |
req.onsuccess = function() { | |
SettingsListener.getSettingsLock().set({ | |
'tethering.wifi.enabled': false | |
}); | |
}; | |
req.onerror = function() { | |
console.log('Something went wrong'); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment