Visual indicator that voicemail is unread.
Bold the text for unread voicemail messages.
Bug: 21086059
Change-Id: Ieb07c7fa22a91669faeb425dabb60b1176ec1091
diff --git a/src/com/android/dialer/PhoneCallDetails.java b/src/com/android/dialer/PhoneCallDetails.java
index add6315..403c4e8 100644
--- a/src/com/android/dialer/PhoneCallDetails.java
+++ b/src/com/android/dialer/PhoneCallDetails.java
@@ -19,12 +19,9 @@
import com.android.dialer.calllog.PhoneNumberDisplayUtil;
import android.content.Context;
-import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.provider.CallLog.Calls;
-import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.telecom.PhoneAccountHandle;
-import android.text.TextUtils;
/**
* The details of a phone call to be shown in the UI.
@@ -87,10 +84,19 @@
// Voicemail transcription
public String transcription;
+ // The display string for the number.
public String displayNumber;
+
+ // Whether the contact number is a voicemail number.
public boolean isVoicemail;
/**
+ * If this is a voicemail, whether the message is read. For other types of calls, this defaults
+ * to {@code true}.
+ */
+ public boolean isRead = true;
+
+ /**
* Constructor with required fields for the details of a call with a number associated with a
* contact.
*/
@@ -104,7 +110,6 @@
this.numberPresentation = numberPresentation;
this.formattedNumber = formattedNumber;
this.isVoicemail = isVoicemail;
-
this.displayNumber = PhoneNumberDisplayUtil.getDisplayNumber(
context,
this.number,