зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1057455 - [Dialer] [MMI] session expired screen for code *3282#, yet SMS still is delivered. r=aknow
This commit is contained in:
Родитель
316e386099
Коммит
4d8a3908de
|
@ -6748,7 +6748,14 @@ RilObject.prototype[UNSOLICITED_ON_USSD] = function UNSOLICITED_ON_USSD() {
|
|||
this.context.debug("On USSD. Type Code: " + typeCode + " Message: " + message);
|
||||
}
|
||||
|
||||
this._ussdSession = (typeCode != "0" && typeCode != "2");
|
||||
let oldSession = this._ussdSession;
|
||||
|
||||
// Per ril.h the USSD session is assumed to persist if the type code is "1".
|
||||
this._ussdSession = typeCode == "1";
|
||||
|
||||
if (!oldSession && !this._ussdSession && !message) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.sendChromeMessage({rilMessageType: "ussdreceived",
|
||||
message: message,
|
||||
|
|
Загрузка…
Ссылка в новой задаче