diff options
author | Nancy Chen <nancychen@google.com> | 2014-06-24 11:39:54 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-06-25 19:15:06 -0700 |
commit | 425284e2cc4cf63a2d8059bdfb770c5f6636cb7e (patch) | |
tree | bb9ec4cd348ed52cd432cf988d59ae0397030128 /src | |
parent | 9a17f0e3e1a3957c8c2b530171281943bec435f1 (diff) | |
download | android_packages_apps_PhoneCommon-425284e2cc4cf63a2d8059bdfb770c5f6636cb7e.tar.gz android_packages_apps_PhoneCommon-425284e2cc4cf63a2d8059bdfb770c5f6636cb7e.tar.bz2 android_packages_apps_PhoneCommon-425284e2cc4cf63a2d8059bdfb770c5f6636cb7e.zip |
Updating CallLogAsync because of change in addCall method in CallLog
The addCall method now has a Subscription parameter, so CallLogAsync
must also be changed.
Bug: 15473965
Change-Id: I05e4077dc542d1126b6de69179b0f0e1adec4743
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/phone/common/CallLogAsync.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/phone/common/CallLogAsync.java b/src/com/android/phone/common/CallLogAsync.java index e8ed6b6..2e00195 100644 --- a/src/com/android/phone/common/CallLogAsync.java +++ b/src/com/android/phone/common/CallLogAsync.java @@ -20,6 +20,7 @@ import android.net.Uri; import android.os.AsyncTask; import android.os.Looper; import android.provider.CallLog.Calls; +import android.telecomm.Subscription; import android.util.Log; import com.android.internal.telephony.CallerInfo; @@ -72,6 +73,7 @@ public class CallLogAsync { String number, int presentation, int callType, + Subscription subscription, long timestamp, long durationInMillis) { // Note that the context is passed each time. We could @@ -96,6 +98,7 @@ public class CallLogAsync { this.number = number; this.presentation = presentation; this.callType = callType; + this.subscription = subscription; this.timestamp = timestamp; this.durationInSec = (int)(durationInMillis / 1000); } @@ -106,6 +109,7 @@ public class CallLogAsync { public final String number; public final int presentation; public final int callType; + public final Subscription subscription; public final long timestamp; public final int durationInSec; } @@ -162,7 +166,7 @@ public class CallLogAsync { // May block. result[i] = Calls.addCall( c.ci, c.context, c.number, c.presentation, - c.callType, c.timestamp, c.durationInSec); + c.callType, c.subscription, c.timestamp, c.durationInSec); } 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 |