зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1147842
- Fix defect of setting call started time. r=hsinyi
This commit is contained in:
Родитель
07800ca06b
Коммит
6e22c0caa1
|
@ -1002,11 +1002,6 @@ TelephonyService.prototype = {
|
|||
aRilCall.number = this._formatInternationalNumber(aRilCall.number,
|
||||
aRilCall.toa);
|
||||
|
||||
if (!aCall.started &&
|
||||
aCall.state == nsITelephonyService.CALL_STATE_CONNECTED) {
|
||||
aCall.started = new Date().getTime();
|
||||
}
|
||||
|
||||
let change = false;
|
||||
const key = ["state", "number", "numberPresentation", "name",
|
||||
"namePresentation"];
|
||||
|
@ -1021,6 +1016,11 @@ TelephonyService.prototype = {
|
|||
aCall.isOutgoing = !aRilCall.isMT;
|
||||
aCall.isEmergency = gDialNumberUtils.isEmergency(aCall.number);
|
||||
|
||||
if (!aCall.started &&
|
||||
aCall.state == nsITelephonyService.CALL_STATE_CONNECTED) {
|
||||
aCall.started = new Date().getTime();
|
||||
}
|
||||
|
||||
return change;
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче