Bug 905076 - [wasabi] Temporary CLIR not work on CDMA. r=vicamo

This commit is contained in:
Hsin-Yi Tsai 2013-08-16 16:18:31 +08:00
Родитель 34bc1e2d7b
Коммит d14af73c2a
1 изменённых файлов: 9 добавлений и 7 удалений

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

@ -1881,13 +1881,15 @@ let RIL = {
if (this._isEmergencyNumber(options.number)) {
this.dialEmergencyNumber(options, onerror);
} else {
// TODO: Both dial() and sendMMI() functions should be unified at some
// point in the future. In the mean time we handle temporary CLIR MMI
// commands through the dial() function. Please see bug 889737.
let mmi = this._parseMMI(options.number);
if (mmi && this._isTemporaryModeCLIR(mmi)) {
options.number = mmi.dialNumber;
options.clirMode = this._getCLIRMode(mmi);
if (!this._isCdma) {
// TODO: Both dial() and sendMMI() functions should be unified at some
// point in the future. In the mean time we handle temporary CLIR MMI
// commands through the dial() function. Please see bug 889737.
let mmi = this._parseMMI(options.number);
if (mmi && this._isTemporaryModeCLIR(mmi)) {
options.number = mmi.dialNumber;
options.clirMode = this._getCLIRMode(mmi);
}
}
this.dialNonEmergencyNumber(options, onerror);
}