mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 946942 - [MMS] MO/MT MMS fail if the MMS APN is shared with default APN (follow-up). r=anshulj,me a=v1.3+
This commit is contained in:
parent
a3a1e9cb22
commit
d90ce77760
@ -256,11 +256,13 @@ MmsConnection.prototype = {
|
||||
let networkManager =
|
||||
Cc["@mozilla.org/network/manager;1"].getService(Ci.nsINetworkManager);
|
||||
let activeNetwork = networkManager.active;
|
||||
if (activeNetwork.serviceId != this.serviceId) {
|
||||
|
||||
let rilNetwork = activeNetwork.QueryInterface(Ci.nsIRilNetworkInterface);
|
||||
if (rilNetwork.serviceId != this.serviceId) {
|
||||
if (DEBUG) debug("Sevice ID between active/MMS network doesn't match.");
|
||||
return;
|
||||
}
|
||||
|
||||
let rilNetwork = activeNetwork.QueryInterface(Ci.nsIRilNetworkInterface);
|
||||
// Set up the MMS APN setting based on the connected MMS network,
|
||||
// which is going to be used for the HTTP requests later.
|
||||
this.setApnSetting(rilNetwork);
|
||||
|
Loading…
Reference in New Issue
Block a user