diff options
Diffstat (limited to 'src/com/android/dialer/PhoneCallDetails.java')
-rw-r--r-- | src/com/android/dialer/PhoneCallDetails.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/com/android/dialer/PhoneCallDetails.java b/src/com/android/dialer/PhoneCallDetails.java index 45c29e461..c380b6554 100644 --- a/src/com/android/dialer/PhoneCallDetails.java +++ b/src/com/android/dialer/PhoneCallDetails.java @@ -26,6 +26,8 @@ import android.provider.ContactsContract.CommonDataKinds.Phone; public class PhoneCallDetails { /** The number of the other party involved in the call. */ public final CharSequence number; + /** The number presenting rules set by the network, e.g., {@link Calls#PRESENTATION_ALLOWED} */ + public final int numberPresentation; /** The formatted version of {@link #number}. */ public final CharSequence formattedNumber; /** The country corresponding with the phone number. */ @@ -59,18 +61,21 @@ public class PhoneCallDetails { public final Uri photoUri; /** Create the details for a call with a number not associated with a contact. */ - public PhoneCallDetails(CharSequence number, CharSequence formattedNumber, - String countryIso, String geocode, int[] callTypes, long date, long duration) { - this(number, formattedNumber, countryIso, geocode, callTypes, date, duration, "", 0, "", - null, null); + public PhoneCallDetails(CharSequence number, int numberPresentation, + CharSequence formattedNumber, String countryIso, String geocode, + int[] callTypes, long date, long duration) { + this(number, numberPresentation, formattedNumber, countryIso, geocode, + callTypes, date, duration, "", 0, "", null, null); } /** Create the details for a call with a number associated with a contact. */ - public PhoneCallDetails(CharSequence number, CharSequence formattedNumber, - String countryIso, String geocode, int[] callTypes, long date, long duration, - CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, + public PhoneCallDetails(CharSequence number, int numberPresentation, + CharSequence formattedNumber, String countryIso, String geocode, + int[] callTypes, long date, long duration, CharSequence name, + int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri) { this.number = number; + this.numberPresentation = numberPresentation; this.formattedNumber = formattedNumber; this.countryIso = countryIso; this.geocode = geocode; |