Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -110,7 +110,9 @@ define(function(require) {
|
|||
// Set wifi.enabled so that it mirrors the state of the hardware.
|
||||
// wifi.enabled is not an ordinary user setting because the system
|
||||
// turns it on and off when wifi goes up and down.
|
||||
settings.createLock().set({'wifi.enabled': wifiManager.enabled});
|
||||
if (!window.VulpesNativeWifi) {
|
||||
settings.createLock().set({'wifi.enabled': wifiManager.enabled});
|
||||
}
|
||||
|
||||
this._bindEvents();
|
||||
|
||||
|
|
@ -372,6 +374,12 @@ define(function(require) {
|
|||
* @param {Function} callback
|
||||
*/
|
||||
_syncWifiEnabled: function(enabled, callback) {
|
||||
// Tundra System owns the radio switch. A delayed Settings poll must
|
||||
// not undo a more recent request from the switch or notification shade.
|
||||
if (window.VulpesNativeWifi) {
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
SettingsCache.getSettings(function(results) {
|
||||
var wifiEnabled = results['wifi.enabled'];
|
||||
if (wifiEnabled !== enabled) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue