Bug 1147842 - Fix defect of setting call started time. r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2015-03-29 21:54:57 +08:00
Родитель 07800ca06b
Коммит 6e22c0caa1
1 изменённых файлов: 5 добавлений и 5 удалений

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

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