diff options
Diffstat (limited to 'src/com/android/dialer/PhoneCallDetailsHelper.java')
-rw-r--r-- | src/com/android/dialer/PhoneCallDetailsHelper.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/dialer/PhoneCallDetailsHelper.java b/src/com/android/dialer/PhoneCallDetailsHelper.java index 68b47afcf..2dc0810e8 100644 --- a/src/com/android/dialer/PhoneCallDetailsHelper.java +++ b/src/com/android/dialer/PhoneCallDetailsHelper.java @@ -18,6 +18,7 @@ package com.android.dialer; import android.content.Context; import android.content.res.Resources; +import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.provider.CallLog; import android.provider.CallLog.Calls; @@ -140,6 +141,12 @@ public class PhoneCallDetailsHelper { views.voicemailTranscriptionView.setText(null); views.voicemailTranscriptionView.setVisibility(View.GONE); } + + // Bold if not read + Typeface typeface = details.isRead ? Typeface.SANS_SERIF : Typeface.DEFAULT_BOLD; + views.nameView.setTypeface(typeface); + views.voicemailTranscriptionView.setTypeface(typeface); + views.callLocationAndDate.setTypeface(typeface); } /** @@ -183,7 +190,9 @@ public class PhoneCallDetailsHelper { if (TextUtils.isEmpty(details.name) && !TextUtils.isEmpty(details.geocode)) { numberFormattedLabel = details.geocode; - } else { + } else if (!(details.numberType == Phone.TYPE_CUSTOM + && TextUtils.isEmpty(details.numberLabel))) { + // Get type label only if it will not be "Custom" because of an empty number label. numberFormattedLabel = Phone.getTypeLabel( mResources, details.numberType, details.numberLabel); } |