Bug 1057455 - [Dialer] [MMI] session expired screen for code *3282#, yet SMS still is delivered. r=aknow

This commit is contained in:
Hsin-Yi Tsai 2014-09-02 15:46:55 +08:00
Родитель 316e386099
Коммит 4d8a3908de
1 изменённых файлов: 8 добавлений и 1 удалений

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

@ -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,