summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/PhoneCallDetails.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/dialer/PhoneCallDetails.java')
-rw-r--r--src/com/android/dialer/PhoneCallDetails.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/com/android/dialer/PhoneCallDetails.java b/src/com/android/dialer/PhoneCallDetails.java
index 4e01ab5a4..3562b170f 100644
--- a/src/com/android/dialer/PhoneCallDetails.java
+++ b/src/com/android/dialer/PhoneCallDetails.java
@@ -16,9 +16,11 @@
package com.android.dialer;
+import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.provider.CallLog.Calls;
import android.provider.ContactsContract.CommonDataKinds.Phone;
+import android.telecomm.Subscription;
/**
* The details of a phone call to be shown in the UI.
@@ -63,13 +65,17 @@ public class PhoneCallDetails {
* The source type of the contact associated with this call.
*/
public final int sourceType;
+ /**
+ * The unique identifier for the provider associated with the call.
+ */
+ public final Drawable subscriptionIcon;
/** Create the details for a call with a number not associated with a contact. */
public PhoneCallDetails(CharSequence number, int numberPresentation,
CharSequence formattedNumber, String countryIso, String geocode,
- int[] callTypes, long date, long duration) {
+ int[] callTypes, long date, long duration, Drawable subscriptionIcon) {
this(number, numberPresentation, formattedNumber, countryIso, geocode,
- callTypes, date, duration, "", 0, "", null, null, 0);
+ callTypes, date, duration, "", 0, "", null, null, 0, subscriptionIcon);
}
/** Create the details for a call with a number associated with a contact. */
@@ -77,7 +83,7 @@ public class PhoneCallDetails {
CharSequence formattedNumber, String countryIso, String geocode,
int[] callTypes, long date, long duration, CharSequence name,
int numberType, CharSequence numberLabel, Uri contactUri,
- Uri photoUri, int sourceType) {
+ Uri photoUri, int sourceType, Drawable subscriptionIcon) {
this.number = number;
this.numberPresentation = numberPresentation;
this.formattedNumber = formattedNumber;
@@ -92,5 +98,6 @@ public class PhoneCallDetails {
this.contactUri = contactUri;
this.photoUri = photoUri;
this.sourceType = sourceType;
+ this.subscriptionIcon = subscriptionIcon;
}
}