mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1147842
- Fix defect of setting call started time. r=hsinyi
This commit is contained in:
parent
69b993afba
commit
963a083f73
@ -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