Bug 1119090 - B2G RIL: There is no missed call information when receive a missed call during active call. r=aknow
authorShawn Ku <sku@mozilla.com>
Thu, 08 Jan 2015 11:47:02 +0800
changeset 222587 fa7a1beefeb991bd2bdaf4207963486e58bfff95
parent 222586 ec211f0ef71a2e507352125639e5cd641cfa508a
child 222588 50eed0f4edc7036380841901920b4623c7d0f9c9
push id13103
push userryanvm@gmail.com
push dateThu, 08 Jan 2015 13:50:28 +0000
treeherderb2g-inbound@fae7478f55e5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaknow
bugs1119090
milestone37.0a1
Bug 1119090 - B2G RIL: There is no missed call information when receive a missed call during active call. r=aknow
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -4126,17 +4126,17 @@ RilObject.prototype = {
       number = "+" + number;
     }
 
     return number;
   },
 
   _addVoiceCall: function(newCall) {
     newCall.number = this._formatInternationalNumber(newCall.number, newCall.toa);
-    newCall.isOutgoing = !(newCall.state == CALL_STATE_INCOMING);
+    newCall.isOutgoing = !newCall.isMT;
     newCall.isConference = false;
 
     this.currentCalls[newCall.callIndex] = newCall;
   },
 
   _handleChangedCallState: function(changedCall) {
     let message = {rilMessageType: "callStateChange",
                    call: changedCall};