mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 843452 - Part 4-3: [MMS] Get voiceInfo via MobileConnectionService. r=vicamo
This commit is contained in:
parent
141979248e
commit
b638fc1cfd
@ -163,6 +163,10 @@ XPCOMUtils.defineLazyServiceGetter(this, "gNetworkManager",
|
||||
"@mozilla.org/network/manager;1",
|
||||
"nsINetworkManager");
|
||||
|
||||
XPCOMUtils.defineLazyServiceGetter(this, "gMobileConnectionService",
|
||||
"@mozilla.org/mobileconnection/mobileconnectionservice;1",
|
||||
"nsIMobileConnectionService");
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "MMS", function() {
|
||||
let MMS = {};
|
||||
Cu.import("resource://gre/modules/MmsPduHelper.jsm", MMS);
|
||||
@ -324,7 +328,8 @@ MmsConnection.prototype = {
|
||||
* @return true if voice call is roaming.
|
||||
*/
|
||||
isVoiceRoaming: function() {
|
||||
let isRoaming = this.radioInterface.rilContext.voice.roaming;
|
||||
let voice = gMobileConnectionService.getVoiceConnectionInfo(this.serviceId);
|
||||
let isRoaming = voice.roaming;
|
||||
if (DEBUG) debug("isVoiceRoaming = " + isRoaming);
|
||||
return isRoaming;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user