Bug 829529 - [Wifi hotspot] Wifi hotspot settings should be disabled automatically when we turn on wifi. r=mrbkap

This commit is contained in:
Vincent Chang 2013-01-11 11:49:27 +00:00
Родитель da1c0a3d9e
Коммит fdf55580c4
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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});
},