diff options
Diffstat (limited to 'src/com/android/phone/common/CallLogAsync.java')
-rw-r--r-- | src/com/android/phone/common/CallLogAsync.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/com/android/phone/common/CallLogAsync.java b/src/com/android/phone/common/CallLogAsync.java index e8ed6b6..9ded014 100644 --- a/src/com/android/phone/common/CallLogAsync.java +++ b/src/com/android/phone/common/CallLogAsync.java @@ -73,7 +73,9 @@ public class CallLogAsync { int presentation, int callType, long timestamp, - long durationInMillis) { + long durationInMillis, + int subscription, + int durationType) { // Note that the context is passed each time. We could // have stored it in a member but we've run into a bunch // of memory leaks in the past that resulted from storing @@ -98,6 +100,8 @@ public class CallLogAsync { this.callType = callType; this.timestamp = timestamp; this.durationInSec = (int)(durationInMillis / 1000); + this.durationType = durationType; + this.subscription = subscription; } // Since the members are accessed directly, we don't use the // mXxxx notation. @@ -108,6 +112,8 @@ public class CallLogAsync { public final int callType; public final long timestamp; public final int durationInSec; + public final int durationType; + public final int subscription; } /** @@ -160,9 +166,9 @@ public class CallLogAsync { try { // May block. - result[i] = Calls.addCall( - c.ci, c.context, c.number, c.presentation, - c.callType, c.timestamp, c.durationInSec); + result[i] = Calls.addCall(c.ci, c.context, c.number, c.presentation, + c.callType, c.timestamp, c.durationInSec, c.subscription, + c.durationType); } catch (Exception e) { // This must be very rare but may happen in legitimate cases. // e.g. If the phone is encrypted and thus write request fails, it may |