зеркало из https://github.com/mozilla/gecko-dev.git
Bug 829529 - [Wifi hotspot] Wifi hotspot settings should be disabled automatically when we turn on wifi. r=mrbkap
This commit is contained in:
Родитель
da1c0a3d9e
Коммит
fdf55580c4
|
@ -2829,6 +2829,11 @@ WifiWorker.prototype = {
|
|||
this.setWifiEnabledInternal(false, function(data) {
|
||||
this.setWifiApEnabled(data, this.nextRequest.bind(this));
|
||||
}.bind(this));
|
||||
// It's really sad that we don't have an API to notify the wifi
|
||||
// hotspot status. Toggle settings to let gaia know that wifi hotspot
|
||||
// is disalbed.
|
||||
gSettingsService.createLock().set(
|
||||
"tethering.wifi.enabled", false, null, "fromInternalSetting");
|
||||
}
|
||||
this.setWifiEnabled({enabled: enabled});
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче