diff options
author | Nancy Chen <nancychen@google.com> | 2015-06-11 20:06:26 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-06-19 17:50:25 -0700 |
commit | 03aaf3894d8af53f241d1189c504e44c538100d4 (patch) | |
tree | 46535da8bf30d57ac58f3e3ea1a42bf97863ee41 /src/com/android/dialer/calllog/CallLogAdapter.java | |
parent | af7d8bbd51a315a500796d397a28afecc2358d1e (diff) |
Visual indicator that voicemail is unread.
Bold the text for unread voicemail messages.
Bug: 21086059
Change-Id: Ieb07c7fa22a91669faeb425dabb60b1176ec1091
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogAdapter.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 4304002da..5738e977f 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -24,6 +24,7 @@ import android.net.Uri; import android.support.v7.widget.RecyclerView; import android.os.Bundle; import android.os.Trace; +import android.provider.CallLog; import android.support.v7.widget.RecyclerView.ViewHolder; import android.telecom.PhoneAccountHandle; import android.telephony.PhoneNumberUtils; @@ -289,7 +290,6 @@ public class CallLogAdapter extends GroupingListAdapter private ViewHolder createCallLogEntryViewHolder(ViewGroup parent) { LayoutInflater inflater = LayoutInflater.from(mContext); View view = inflater.inflate(R.layout.call_log_list_item, parent, false); - CallLogListItemViewHolder viewHolder = CallLogListItemViewHolder.create( view, mContext, @@ -358,6 +358,9 @@ public class CallLogAdapter extends GroupingListAdapter details.features = getCallFeatures(c, count); details.geocode = c.getString(CallLogQuery.GEOCODED_LOCATION); details.transcription = c.getString(CallLogQuery.TRANSCRIPTION); + if (details.callTypes[0] == CallLog.Calls.VOICEMAIL_TYPE) { + details.isRead = c.getInt(CallLogQuery.IS_READ) == 1; + } if (!c.isNull(CallLogQuery.DATA_USAGE)) { details.dataUsage = c.getLong(CallLogQuery.DATA_USAGE); |