apps/system/js/quick_settings.js
/**
     * Checks if we are currently roaming or not.
     * @memberof QuickSettings.prototype
     */
Checks if we are currently roaming or not.
Checks if we are currently roaming or not .
function qs_checkDataRoaming() {
      var lock = SettingsListener.getSettingsLock();
      var reqSetting = lock.get(this.DATA_ROAMING_KEY);
      var self = this;
      return new Promise(function(resolve, reject) {
        reqSetting.onerror = function() {
          resolve(true);
        };
        reqSetting.onsuccess = function() {
          resolve(reqSetting.result[self.DATA_ROAMING_KEY]);
        };
      });
    }
function qs_checkDataRoaming ( ) { var lock = SettingsListener . getSettingsLock ( ) ; var reqSetting = lock . get ( this . DATA_ROAMING_KEY ) ; var self = this ; return new Promise ( function ( resolve , reject ) { reqSetting . onerror = function ( ) { resolve ( true ) ; } ; reqSetting . onsuccess = function ( ) { resolve ( reqSetting . result [ self . DATA_ROAMING_KEY ] ) ; } ; } ) ; }
Checks if we are currently roaming or not.
Checks if we are currently roaming or not .