Bug 970191 - Fix unable to switch default client of data connection in DSDS. r=hsinyi

This commit is contained in:
Edgar Chen 2014-02-10 14:42:11 +08:00
Родитель 36ced35ebe
Коммит 1abf46ec51
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -926,13 +926,13 @@ XPCOMUtils.defineLazyGetter(this, "gDataConnectionManager", function () {
if (network.state == Ci.nsINetworkInterface.NETWORK_STATE_UNKNOWN) {
let connHandler = this._connectionHandlers[this._currentDataClientId];
let radioInterface = connHandler.radioInterface;
if (!connHandler.allDataDisconnected() &&
if (connHandler.allDataDisconnected() &&
typeof this._pendingDataCallRequest === "function") {
if (RILQUIRKS_DATA_REGISTRATION_ON_DEMAND) {
radioInterface.setDataRegistration(false);
}
if (DEBUG) {
debug("All data calls disconnected, setup pending data call.");
this.debug("All data calls disconnected, setup pending data call.");
}
this._pendingDataCallRequest();
this._pendingDataCallRequest = null;