mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1147842
- Fix defect of setting call started time. r=hsinyi
This commit is contained in:
parent
07800ca06b
commit
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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user